ci: pin GitHub Actions to SHAs and disable checkout credentials - #76
Merged
Conversation
Pin all workflow actions to full commit SHAs with version comments so Dependabot can keep them updated immutably. Set persist-credentials: false on actions/checkout to avoid leaving the token in git config. Group Dependabot GitHub Actions updates into a single weekly PR. Co-authored-by: Gabriel Dugny <git@dugny.me>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #76 +/- ##
=======================================
Coverage 97.24% 97.24%
=======================================
Files 12 12
Lines 727 727
Branches 66 66
=======================================
Hits 707 707
Misses 18 18
Partials 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
GabDug
marked this pull request as ready for review
August 9, 2026 15:20
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
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
Hardens CI against supply-chain and credential-persistence issues:
ci.yml,release.yml, andsync_python_deps.yml, including replacingpdm-project/update-deps-action@mainwith thev1.12SHA.github-actions— it already updates SHA-pinned actions (SHA + trailing version comment). Grouped weekly Action updates into a single PR. Renovate is not needed for this.persist-credentials: falseon everyactions/checkoutso the workflow token is not left in git config for later steps.Verification
Build & verify package+ allCI-Pythonmatrix jobs on Ubuntu/macOS/Windows). CodeQL, pre-commit.ci, Snyk, and Codecov also passed.github-actionsentry present —.github/dependabot.ymlstill haspackage-ecosystem: github-actionswith weekly schedule + grouped updates. This repo already has an active Dependabot history for Actions bumps (e.g. chore(deps): bump actions/checkout from 5 to 6 #63, chore(deps): bump actions/cache from 4 to 5 #65, chore(deps): bump actions/upload-artifact from 4 to 6 #66, open chore(deps): bump actions/upload-artifact from 6 to 7 #72/chore(deps): bump codecov/codecov-action from 5.5.5 to 7.0.0 #75). Dependabot updates SHA-pinned refs and trailing version comments together, so no Renovate switch is required.release.yml: PyPI publish uses OIDC (id-token: write); release asset upload usesGITHUB_TOKEN/ actiontokeninput via the GitHub API (xresloader/upload-to-github-release), not git credentials.sync_python_deps.yml:update-deps-actionpassestoken: ${{ github.token }}intopeter-evans/create-pull-request, which configures its own HTTPS auth viaconfigureToken(x-access-token) and does not rely on checkout-persisted credentials.