Skip to content

package workflow: read AWS config from secrets, not variables#34

Merged
aaltshuler merged 1 commit into
mainfrom
fix/package-workflow-use-secrets
Apr 18, 2026
Merged

package workflow: read AWS config from secrets, not variables#34
aaltshuler merged 1 commit into
mainfrom
fix/package-workflow-use-secrets

Conversation

@aaltshuler

Copy link
Copy Markdown
Collaborator

Follow-up to #33. On a public repo, Actions variables are not masked in workflow logs. Values that embed the AWS account ID (role ARN, artifact bucket) appearing in public run logs isn't catastrophic but isn't the norm-preserving choice either.

All four values (region, role, project, bucket) now flow through `${{ secrets.* }}` instead of `${{ vars.* }}`. When secrets are passed via `with:` to a reusable workflow, the value stays in the masked set — GitHub's masking is value-based, not context-based, and applies across the whole run once the secret reference resolves.

The four repo-level secrets are already set. Variables have been deleted.

Test plan

  • YAML parses.
  • Manual dispatch on `main` once merged — workflow successfully assumes the role, CodeBuild kicks off. Log inspection: ARN + bucket render as `***`.

On a public repo, Actions variables are not masked in workflow logs.
The AWS role ARN and artifact bucket name embed the AWS account ID —
not catastrophic, but norm-preserving to keep them out of public logs.

Switch all four values (region, role, project, bucket) from
`${{ vars.* }}` to `${{ secrets.* }}`. When secrets are passed via
`with:` to a reusable workflow, GitHub's masking still applies because
the value is added to the run's mask list as soon as the secret
reference is resolved.

Followup to #33 — should have landed as secrets from the start.
@aaltshuler aaltshuler merged commit eeb890a into main Apr 18, 2026
1 check passed
aaltshuler added a commit that referenced this pull request Apr 18, 2026
GitHub Actions doesn't expose the 'secrets' context in 'with:' when
calling a reusable workflow. The companion PR on the shared workflow
(ModernRelay/.github) moves the four AWS values into
on.workflow_call.secrets; this caller drops them from 'with:' and adds
'secrets: inherit' so all four flow through masked.

Trailing from PRs #33 and #34.
@aaltshuler aaltshuler deleted the fix/package-workflow-use-secrets branch June 8, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant