Skip to content

fix: pin terraform apply workflow actions#93

Open
HikaruEgashira wants to merge 1 commit intomainfrom
codex/fix-unpinned-github-actions-in-workflow
Open

fix: pin terraform apply workflow actions#93
HikaruEgashira wants to merge 1 commit intomainfrom
codex/fix-unpinned-github-actions-in-workflow

Conversation

@HikaruEgashira
Copy link
Copy Markdown
Member

Motivation

  • Pin third-party GitHub Actions used by the privileged terraform-apply workflow to immutable commit SHAs to remove the supply-chain risk of mutable version tags being retargeted and executing code with AWS OIDC credentials.

Description

  • Updated .github/workflows/terraform-apply.yml to replace mutable action tags with specific commit SHAs for actions/checkout (11bd71901bbe5b1630ceea73d27597364c9af683 // v4.2.2), aws-actions/configure-aws-credentials (7474bc4 // v4.3.1), and hashicorp/setup-terraform (b9cd54a // v3.1.2) while preserving the existing workflow steps and behavior.

Testing

  • Verified the change with rg -n "uses: .*@(v[0-9]|main|master)" .github/workflows/terraform-apply.yml || true and inspected the workflow with sed -n '1,120p' .github/workflows/terraform-apply.yml, and created a commit, all of which succeeded.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant