Skip to content

chore: pin GitHub Actions to commit SHAs#31

Merged
mducroux merged 9 commits into
doge-masterfrom
chore/pin-actions-to-sha
Apr 10, 2026
Merged

chore: pin GitHub Actions to commit SHAs#31
mducroux merged 9 commits into
doge-masterfrom
chore/pin-actions-to-sha

Conversation

@slawomirbabicz

Copy link
Copy Markdown

Pin GitHub Actions to commit SHAs

GitHub Actions referenced by tag (e.g. actions/checkout@v4) use a mutable pointer — the tag owner can move it to a different commit at any time, including a malicious one. This is the attack vector used in the tj-actions/changed-files incident (CVE-2025-30066).

Pinning to a full 40-character commit SHA makes the reference immutable. The # tag comment preserves human readability so reviewers can tell which version is pinned.

Important: a SHA can also originate from a forked repository. A malicious actor can fork an action, push a compromised commit to the fork, and the SHA will resolve — but it won't exist in the upstream canonical repo. Each SHA in this PR was verified against the action's canonical repository (not a fork).

Changes

  • actions/checkout@v4 -> actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1

  • dtolnay/rust-toolchain@stable -> dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable

  • taiki-e/install-action@cargo-llvm-cov -> taiki-e/install-action@d3ea2d8a04fb383a850d99dfc6d6e5d41414d476 # cargo-llvm-cov

    • Version: cargo-llvm-cov | Latest: v2.75.4 | Release age: 7d
    • Commit: taiki-e/install-action@d3ea2d8
    • Warnings: Latest release v2.75.4 is only 0 day(s) old (< 7 days). Using previous safe release.
  • actions/cache@v4 -> actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0

  • actions/upload-artifact@v3 -> actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3.2.1

  • actions/download-artifact@v3 -> actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2

    • Version: v3.0.2 | Latest: v3.1.0-node20 | Release age: 23d
    • Commit: actions/download-artifact@9bc31d5
    • Warnings: 1 security advisory(ies) found, Action has 1 known advisory(ies)
  • model-checking/kani-github-action@v1.1 -> model-checking/kani-github-action@f838096619a707b0f6b2118cf435eaccfa33e51f # v1.1

  • dtolnay/rust-toolchain@nightly -> dtolnay/rust-toolchain@5b842231ba77f5c045dba54ac5560fed2db780e2 # nightly

  • peter-evans/create-pull-request@v6 -> peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0

  • ncipollo/release-action@v1 -> ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0

  • actions/labeler@v5 -> actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5

  • dtolnay/rust-toolchain@v1 -> dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1

Files modified

  • .github/workflows/coveralls.yml
  • .github/workflows/cron-daily-fuzz.yml
  • .github/workflows/cron-daily-kani.yml
  • .github/workflows/cron-daily-update-nightly.yml
  • .github/workflows/cron-weekly-rustfmt.yml
  • .github/workflows/gh-release.yml
  • .github/workflows/manage-pr.yml
  • .github/workflows/release.yml
  • .github/workflows/rust.yml

Security warnings

  • Latest release v2.75.4 is only 0 day(s) old (< 7 days). Using previous safe release.
  • 1 security advisory(ies) found
  • Action has 1 known advisory(ies)

@slawomirbabicz
slawomirbabicz requested a review from a team as a code owner April 10, 2026 08:29
@github-actions github-actions Bot added the ci label Apr 10, 2026
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 24234007072

Coverage increased (+0.1%) to 83.529%

Details

  • Coverage increased (+0.1%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 6 coverage regressions across 1 file.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

6 previously-covered lines in 1 file lost coverage.

File Lines Losing Coverage Coverage
bitcoin/src/psbt/mod.rs 6 84.95%

Coverage Stats

Coverage Status
Relevant Lines: 21620
Covered Lines: 18059
Line Coverage: 83.53%
Coverage Strength: 16529.83 hits per line

💛 - Coveralls

@mducroux
mducroux merged commit f031d25 into doge-master Apr 10, 2026
26 checks passed
@mducroux
mducroux deleted the chore/pin-actions-to-sha branch April 10, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants