Skip to content

Pin GitHub Actions to full commit SHAs - #31

Open
jeremy wants to merge 1 commit into
masterfrom
pin-actions-to-commit-shas
Open

jeremy wants to merge 1 commit into
masterfrom
pin-actions-to-commit-shas

Conversation

@jeremy

@jeremy jeremy commented Nov 19, 2026

Copy link
Copy Markdown
Member

The basecamp org is about to allow only listed actions and to require every action to be pinned to a full commit SHA. Once that's on, a step that names an action by tag or branch (actions/checkout@v4) won't start. This pins the 2 such references in this repo ahead of the switch.

Behavior-neutral. Each reference now names the commit its tag or branch points to today, so the same action code runs. The trailing comment names the release at that commit (@v4 becomes @<sha> # v4.x.y), which is what Dependabot reads to bump it.

Keeping the pins current. Adds .github/dependabot.yml with a weekly, grouped github-actions update, so the SHAs get bumped in one PR a week instead of going stale.

Local actions (./) and reusable workflows aren't covered by the SHA rule and are left as they were.

Pinned with pinact. Each SHA was checked against the action's own repo: it exists there, and it is the commit the replaced tag or branch, and the release in the comment, point to today.

The org is moving to require SHA-pinned actions. Each tag or branch reference now names the commit it points to today, so behavior is unchanged. Dependabot's github-actions updates keep the pins current.
Copilot AI balanced review requested due to automatic review settings November 19, 2026 22:29
@jeremy
jeremy requested a review from robzolkos November 19, 2026 22:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approved

No active review issues are reported for the action-pinning and Dependabot configuration changes.

No open issues 🎉

What changed in this PR

Prepares the test workflow for the organization’s full-commit-SHA requirement and adds automated maintenance for action pins.

Changes:

  • Pins actions/checkout and actions/setup-node to full commit SHAs, with release-version comments.
  • Adds weekly, grouped Dependabot updates for GitHub Actions.

[!TIP]
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

File Description
.github/​workflows/​tests.yml Replaces two action tags with full commit SHAs.
.github/​dependabot.yml Configures weekly, grouped GitHub Actions updates.

Review effort: Balanced

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.

2 participants