Pin GHA workflow actions to commit SHAs for supply chain security#93
Merged
IndrajeetPatil merged 1 commit intomainfrom Apr 3, 2026
Merged
Pin GHA workflow actions to commit SHAs for supply chain security#93IndrajeetPatil merged 1 commit intomainfrom
IndrajeetPatil merged 1 commit intomainfrom
Conversation
…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
There was a problem hiding this comment.
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-requesttov8.1.0andlycheeverse/lychee-actiontov2.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.
Member
Author
|
The CodeQL failure in Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
peter-evans/create-pull-requestto v8.1.0 andlycheeverse/lychee-actionto v2.8.0 (latest patch releases)@abc123def # v6.0.2)Action → SHA mapping
actions/checkoutde0fac2e4500dabe0009e67214ff5f5447ce83ddr-lib/actions/*6f6e5bc62fba3a704f74e7ad7ef7676c5c6a2590posit-dev/setup-air63e80dedb6d275c94a3841e15e5ff8691e1ab237reviewdog/action-suggesteraa38384ceb608d00f84b4690cacc83a5aba307ffJamesIves/github-pages-deploy-actiond92aa235d04922e8f08b40ce78cc5442fcfbfa2flycheeverse/lychee-action8646ba30535128ac92d33dfc9133794bfdd9b411peter-evans/create-pull-requestc0f553fe549906ede9cf27b5156039d195d2ece0Test plan