Skip to content

ci: pin third-party actions to commit SHAs + add dependabot#45

Draft
rubydusa wants to merge 1 commit into
mainfrom
ramgos/pin-actions-sha
Draft

ci: pin third-party actions to commit SHAs + add dependabot#45
rubydusa wants to merge 1 commit into
mainfrom
ramgos/pin-actions-sha

Conversation

@rubydusa
Copy link
Copy Markdown
Contributor

Closes #40.

Summary

  • Pin every uses: reference in the four workflows to a full commit SHA, with the human-readable tag preserved in a trailing comment.
  • Add .github/dependabot.yml to bump pins on a weekly cadence (single grouped PR).

Why

Floating tags can be moved by upstream — for workflows that handle PRIVATE_KEY and run on consumer repos, that is a meaningful supply-chain risk. GitHub's hardening guidance recommends commit-SHA pinning.

Versions pinned

Action SHA Tag
actions/checkout 34e114876b… v4.3.1
actions/setup-node 49933ea528… v4.4.0
actions/setup-python a26af69be9… v5.6.0
actions/upload-artifact ea165f8d65… v4.6.2
actions/download-artifact d3f86a106a… v4.3.0
foundry-rs/foundry-toolchain c7450ba673… v1.8.0
marocchino/sticky-pull-request-comment 7737449015… v2.9.4
crytic/slither-action f197989dea… v0.4.0
dorny/paths-filter d1c1ffe024… v3.0.3

Test plan

  • All 6 unit-test scripts still pass locally.
  • YAML validates via python3 -m yaml for all workflows + dependabot config.
  • CI green on this PR.

🤖 Generated with Claude Code

Pin every uses: reference in workflows to a full commit SHA, with the
human-readable tag in a trailing comment. Adds .github/dependabot.yml
to keep the pins fresh on a weekly cadence.

Hardens against tag-mutation supply-chain attacks on workflows that
handle PRIVATE_KEY and run on consumer repos.

Closes #40
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.

Pin third-party GitHub Actions to SHA hashes

1 participant