Skip to content

Pin GHA workflow actions to commit SHAs for supply chain security#93

Merged
IndrajeetPatil merged 1 commit intomainfrom
claude/update-gha-workflows-HXU9s
Apr 3, 2026
Merged

Pin GHA workflow actions to commit SHAs for supply chain security#93
IndrajeetPatil merged 1 commit intomainfrom
claude/update-gha-workflows-HXU9s

Conversation

@IndrajeetPatil
Copy link
Copy Markdown
Member

Summary

  • Pins all 10 GitHub Actions used across 23 workflow files to their exact commit SHAs, preventing supply chain attacks via compromised/moved tags
  • Updates peter-evans/create-pull-request to v8.1.0 and lycheeverse/lychee-action to v2.8.0 (latest patch releases)
  • Tag names are preserved as inline comments for human readability (e.g., @abc123def # v6.0.2)

Action → SHA mapping

Action Tag Commit SHA
actions/checkout v6.0.2 de0fac2e4500dabe0009e67214ff5f5447ce83dd
r-lib/actions/* v2 6f6e5bc62fba3a704f74e7ad7ef7676c5c6a2590
posit-dev/setup-air v1 63e80dedb6d275c94a3841e15e5ff8691e1ab237
reviewdog/action-suggester v1 aa38384ceb608d00f84b4690cacc83a5aba307ff
JamesIves/github-pages-deploy-action v4.8.0 d92aa235d04922e8f08b40ce78cc5442fcfbfa2f
lycheeverse/lychee-action v2.8.0 8646ba30535128ac92d33dfc9133794bfdd9b411
peter-evans/create-pull-request v8.1.0 c0f553fe549906ede9cf27b5156039d195d2ece0

Test plan

  • Verify all workflows parse as valid YAML
  • Trigger a workflow run to confirm actions load correctly at their pinned SHAs

…ttacks

Replace mutable version tags with pinned commit SHAs across all 23 workflow
files. Tags are preserved as inline comments for readability. Also updates
peter-evans/create-pull-request to v8.1.0 and lycheeverse/lychee-action to
v2.8.0 (latest patch releases).

Action → SHA mapping:
- actions/checkout v6.0.2  → de0fac2e4500dabe0009e67214ff5f5447ce83dd
- r-lib/actions v2         → 6f6e5bc62fba3a704f74e7ad7ef7676c5c6a2590
- posit-dev/setup-air v1   → 63e80dedb6d275c94a3841e15e5ff8691e1ab237
- reviewdog/action-suggester v1 → aa38384ceb608d00f84b4690cacc83a5aba307ff
- JamesIves/github-pages-deploy-action v4.8.0 → d92aa235d04922e8f08b40ce78cc5442fcfbfa2f
- lycheeverse/lychee-action v2.8.0 → 8646ba30535128ac92d33dfc9133794bfdd9b411
- peter-evans/create-pull-request v8.1.0 → c0f553fe549906ede9cf27b5156039d195d2ece0

https://claude.ai/code/session_01VSSbUaWppszvDx2WarGMnJ
Copilot AI review requested due to automatic review settings April 3, 2026 13:02
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves GitHub Actions supply-chain security by pinning all third-party GitHub Actions used in this repo’s workflows to immutable commit SHAs (while preserving the human-readable tag/version as an inline comment).

Changes:

  • Pinned all uses: references across the workflow suite from moving tags (e.g., @v2) to exact commit SHAs.
  • Updated and pinned peter-evans/create-pull-request to v8.1.0 and lycheeverse/lychee-action to v2.8.0.
  • Kept version/tag context via inline comments (e.g., # v2) for maintainability.

Reviewed changes

Copilot reviewed 23 out of 23 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.github/workflows/update-to-latest-easystats.yaml Pins checkout, r-lib/actions/*, and create-pull-request to SHAs.
.github/workflows/test-coverage.yaml Pins checkout and r-lib/actions/* to SHAs.
.github/workflows/test-coverage-examples.yaml Pins checkout and r-lib/actions/* to SHAs.
.github/workflows/R-CMD-check.yaml Pins checkout and r-lib/actions/* to SHAs (incl. check-r-package).
.github/workflows/R-CMD-check-pr-short.yaml Pins checkout and r-lib/actions/* to SHAs (incl. check-r-package).
.github/workflows/R-CMD-check-no-oldrel.yaml Pins checkout and r-lib/actions/* to SHAs (incl. check-r-package).
.github/workflows/R-CMD-check-main.yaml Pins checkout and r-lib/actions/* to SHAs (incl. check-r-package).
.github/workflows/R-CMD-check-hard.yaml Pins checkout and r-lib/actions/* to SHAs (incl. check-r-package).
.github/workflows/pkgdown.yaml Pins checkout, r-lib/actions/*, and deploy action to SHAs.
.github/workflows/pkgdown-no-suggests.yaml Pins checkout and r-lib/actions/* to SHAs.
.github/workflows/lint.yaml Pins checkout and r-lib/actions/* to SHAs.
.github/workflows/lint-changed-files.yaml Pins checkout and r-lib/actions/* to SHAs.
.github/workflows/html-5-check.yaml Pins checkout and r-lib/actions/* to SHAs (incl. check-r-package).
.github/workflows/format-suggest.yaml Pins checkout, setup-air, and action-suggester to SHAs.
.github/workflows/check-vignette-warnings.yaml Pins checkout and r-lib/actions/* to SHAs.
.github/workflows/check-test-warnings.yaml Pins checkout and r-lib/actions/* to SHAs.
.github/workflows/check-styling.yaml Pins checkout and setup-air to SHAs.
.github/workflows/check-spelling.yaml Pins checkout and r-lib/actions/* to SHAs.
.github/workflows/check-readme.yaml Pins checkout and r-lib/actions/* to SHAs.
.github/workflows/check-random-test-order.yaml Pins checkout and r-lib/actions/* to SHAs.
.github/workflows/check-no-warnings.yaml Pins checkout and r-lib/actions/* to SHAs.
.github/workflows/check-link-rot.yaml Pins checkout and lychee-action to SHAs.
.github/workflows/check-all-examples.yaml Pins checkout and r-lib/actions/* to SHAs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member Author

The CodeQL failure in format-suggest.yaml (line 37, "Checkout of untrusted code in trusted context") is pre-existing and unrelated to this PR. It was already present on main before these changes.


Generated by Claude Code

@IndrajeetPatil IndrajeetPatil merged commit ec72ae7 into main Apr 3, 2026
6 of 7 checks passed
@IndrajeetPatil IndrajeetPatil deleted the claude/update-gha-workflows-HXU9s branch April 3, 2026 13:25
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.

3 participants