Skip to content

CI: pin GitHub actions to exact commit SHAs - #6

Merged
MAOFILHO merged 1 commit into
mainfrom
ci/pin-action-shas
Dec 3, 2026
Merged

MAOFILHO merged 1 commit into
mainfrom
ci/pin-action-shas

Conversation

@MAOFILHO

@MAOFILHO MAOFILHO commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Why

Both workflows referenced actions by mutable major tag (@v7). The tag owner can repoint it, and the next run executes that code with OPENAI_API_KEY (and the tracing keys) in its environment. Flagged by semgrep github-actions-mutable-action-tag.

Change

Each uses: now pins the full 40-character commit SHA that v7 resolved to on 2026-12-02, with the release in a trailing comment:

Action Release SHA
actions/checkout v7.0.1 3d3c42e5aac5ba805825da76410c181273ba90b1
actions/setup-python v7.1.0 6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
actions/upload-artifact v7.0.2 cf430e030ddbb5b0abf93d22962f4752f3646cd9

Files: continuous-evaluation.yml (3 lines), smoke-tests.yml (2 lines). Same code as today, so behavior is unchanged.

Test plan

  • SHAs resolved from each repo's v7 tag via the GitHub API and matched to the release tag
  • Both workflow files parse
  • Smoke Tests run on this PR passes (exercises checkout + setup-python pins)

🤖 Generated with Claude Code

A version tag like @v7 can be moved by the action's owner, and the next
run would execute the new code with the repo's secrets. Each action is
now locked to the commit its v7 tag pointed at today; the trailing
comment names the release.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@MAOFILHO
MAOFILHO merged commit 4aca8f6 into main Dec 3, 2026
2 checks passed
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