Skip to content

Pin GitHub Actions to commit SHAs - #45

Open
byjpr wants to merge 1 commit into
claude/admiring-planck-25cvzffrom
claude/fix-21-pin-actions
Open

byjpr wants to merge 1 commit into
claude/admiring-planck-25cvzffrom
claude/fix-21-pin-actions

Conversation

@byjpr

@byjpr byjpr commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Closes #21

Changes

  • Every action is pinned to a full commit SHA, with the version as a comment:

    • actions/checkout@11d5960a… # v4.4.0
    • cachix/install-nix-action@13d8dd58… # v31.11.1
    • DeterminateSystems/update-flake-lock@a2bbe027… # v24

    The SHAs were resolved with git ls-remote; they are lightweight tags, so these are the commit SHAs.

  • CI checkouts use persist-credentials: false, so the token isn't left in .git/config for later steps.

  • .github/dependabot.yml: weekly PRs for action updates, so pins don't go stale.

Note: #28 replaces update-flake-lock with peter-evans/create-pull-request. Whichever is merged second needs that action pinned too; I'll handle it when resolving the conflict.

Testing

All three files parse as YAML. No code changes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01G22o7QQ17GRtkCqpJNFr9B


Generated by Claude Code

Tags can be moved, so a compromised action repository could change what
runs in CI (the update workflow can push and open PRs). All actions are
now pinned to full commit SHAs with the version in a comment, CI checkouts
don't persist the token, and Dependabot proposes updates as PRs.

Closes #21

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G22o7QQ17GRtkCqpJNFr9B
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.

[Low] GitHub Actions are pinned by tag, not commit

2 participants