-
Notifications
You must be signed in to change notification settings - Fork 1
Pin GitHub Actions versions by commit hash #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThis update modifies several GitHub Actions workflow files to replace floating or generic version tags for actions with specific commit SHAs. Actions such as Changes
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.github/workflows/check-links.yaml (1)
23-23: Pin Markdown link checker action to a commit SHA
Lockinggaurav-nelson/github-action-markdown-link-check@3c3b66f1f7d0900e37b71eca45b63ea9eedfce31prevents unexpected upstream changes.The inline comment reads
# 1.0.17; consider prefixing withv(# v1.0.17) to match the style used for other actions.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
.github/workflows/check-links.yaml(1 hunks).github/workflows/ci.yaml(5 hunks).github/workflows/docs.yaml(3 hunks).github/workflows/update-pre-commits.yaml(1 hunks)
🔇 Additional comments (23)
.github/workflows/check-links.yaml (1)
20-20: Pinactions/checkoutto a specific commit for reproducibility
Usingactions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683(v4.2.2) ensures deterministic workflow runs..github/workflows/docs.yaml (5)
25-25: Pinactions/checkoutto a specific commit for stability
Swappingv4for@11bd71901bbe5b1630ceea73d27597364c9af683(v4.2.2) locks the code version and improves reproducibility.
30-30: Pinactions/setup-pythonto an exact SHA
Using@8d9ed9ac5c53483de85588cdf95a591a75ab9f55(v5.5.0) makes the Python setup step deterministic.
40-40: Pinactions/upload-artifactto a fixed commit
Locking to@ea165f8d65b6e75b540449e92b4886f43607fa02(v4.6.2) ensures artifact uploads aren’t affected by upstream changes.
52-52: Pinactions/download-artifactto a specific commit
Switching to@95815c38cf2ff2164869cbab79da8d1f422bc89e(v4.2.1) avoids version drift when fetching artifacts.
59-59: Pinpeaceiris/actions-gh-pagesaction to a commit SHA
Using@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e(v4.0.0) guarantees consistent deployment behavior..github/workflows/ci.yaml (13)
31-31: Pinactions/checkoutin QA job to a commit SHA
Locking to@11bd71901bbe5b1630ceea73d27597364c9af683(v4.2.2) makes checkout deterministic.
34-34: Pinactions/setup-pythonin QA job to a commit SHA
Using@8d9ed9ac5c53483de85588cdf95a591a75ab9f55(v5.5.0) ensures stable Python versions.
37-37: Pinpre-commit/actionto a specific commit
Switching to@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd(v3.0.1) locks linting behavior.
48-48: Pinactions/checkoutin Test job to a commit SHA
Locking to@11bd71901bbe5b1630ceea73d27597364c9af683(v4.2.2) for consistent checkouts across matrices.
53-53: Pinactions/setup-pythonin Test job to a commit SHA
Using@8d9ed9ac5c53483de85588cdf95a591a75ab9f55(v5.5.0) provides a reproducible Python environment.
65-65: Pinactions/upload-artifactfor coverage data to a specific commit
Switching to@ea165f8d65b6e75b540449e92b4886f43607fa02(v4.6.2) stabilizes artifact uploads.
75-75: Pinactions/checkoutin Build job to a commit SHA
Locking to@11bd71901bbe5b1630ceea73d27597364c9af683(v4.2.2) ensures consistency.
78-78: Pinactions/setup-pythonin Build job to a commit SHA
Using@8d9ed9ac5c53483de85588cdf95a591a75ab9f55(v5.5.0) for reproducible builds.
85-85: Pinactions/upload-artifact(sdist) to a specific commit
Switching to@ea165f8d65b6e75b540449e92b4886f43607fa02(v4.6.2) locks artifact version.
89-89: Pinactions/upload-artifact(bdist) to a specific commit
Using the same SHA (@ea165f8d65b6e75b540449e92b4886f43607fa02) ensures parity between artifacts.
104-104: Pinactions/download-artifact(sdist) to a commit SHA
Locking to@95815c38cf2ff2164869cbab79da8d1f422bc89e(v4.2.1) for stable downloads.
108-108: Pinactions/download-artifact(bdist) to a commit SHA
Using@95815c38cf2ff2164869cbab79da8d1f422bc89efor consistency with sdist downloads.
114-114: Pinpypa/gh-action-pypi-publishto a specific commit
Switching to@76f52bc884231f62b9a034ebfe128415bbaabdfc(v1.12.4) ensures deterministic publishing..github/workflows/update-pre-commits.yaml (4)
19-19: Pinactions/checkoutto a specific commit for reproducibility
Locking to@11bd71901bbe5b1630ceea73d27597364c9af683(v4.2.2) avoids unexpected changes.
22-22: Pinactions/setup-pythonto a fixed SHA
Using@8d9ed9ac5c53483de85588cdf95a591a75ab9f55(v5.5.0) for a stable Python environment.
25-25: Pinbrowniebroke/pre-commit-autoupdate-actionto a commit
Switching to@deb83bfe0036e1116ee4e241d6220274d69b1f9e(v1.0.0) locks hook updates.
26-26: Pinpeter-evans/create-pull-requestto a commit SHA
Using@271a8d0340265f705b14b6d32b9829c1cb33d45e(v7.0.8) ensures deterministic PR creation.
|
Pin all GitHub Actions used in the project using their git hash. This is a step up on security requested by
They all are expected to work with dependabot from now on: dependabot/dependabot-core#5951 |
Summary by CodeRabbit