You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore(actions): pin all actions to full-length commit SHAs - #2761
Every GitHub Actions reference in .github/workflows/ was resolved through a mutable tag (or, in one case, a branch). If an upstream tag is moved, the same commit of this repository starts executing different third-party code with the workflow's GITHUB_TOKEN and secrets.
What is changed and how it works?
All uses: entries are pinned to the full-length commit SHA they currently resolve to, keeping the original tag as a trailing comment. No action version is upgraded and no workflow logic is modified.
Such references are pinned to the current commit of that branch and no longer follow upstream changes; they are updated by the dependency bot from now on.
Verification: pinact run --check reports no remaining unpinned references.
This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign bb7133 for approval. For more information see the Code Review Process. Please ensure that each of them provides their approval before proceeding.
The full list of commands accepted by this bot can be found here.
Details
Needs approval from an approver in each of these files:
No actionable comments were generated in the recent review.
Walkthrough
The listed GitHub Actions workflows now reference actions by pinned commit SHAs instead of version tags. Version comments identify the pinned releases. Workflow triggers, configuration, and job behavior remain unchanged.
Changes: Workflow action pinning
Layer / File(s)
Summary
Pin actions across workflows .github/workflows/install.yaml, .github/workflows/integrate-*.yaml, .github/workflows/lint.yaml, .github/workflows/release-tiup.yaml, .github/workflows/reprotest.yaml, .github/workflows/server-private-files.yaml
The workflows use pinned commit SHAs for checkout, Go setup, artifact upload, Codecov, release, and Homebrew actions. Comments identify the corresponding action versions. Existing workflow configuration remains unchanged.
This change pins GitHub Actions to commit SHAs without changing workflow behavior. It reduces supply-chain exposure and no merge-blocking risk was identified.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "chore(actions): pin all actions to full-length commit SHAs" matches the changeset. The raw summary and PR objectives both show that tag references in uses: lines across the workflow files w…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
The description states the problem (mutable action tags allow upstream code changes to run with GITHUB_TOKEN and secrets), the change (all uses: entries pinned to full commit SHAs with the original ta…
Full details: Title check
Explanation
The title "chore(actions): pin all actions to full-length commit SHAs" matches the changeset. The raw summary and PR objectives both show that tag references in uses: lines across the workflow files were replaced with 40-character commit SHAs, with version comments kept. The title is specific and concise, and it names the main change.
Full details: Description check
Explanation
The description states the problem (mutable action tags allow upstream code changes to run with GITHUB_TOKEN and secrets), the change (all uses: entries pinned to full commit SHAs with the original tag kept as a comment, no version upgrades, no logic changes), a diff example, handling of the branch-pinned actions-js/push reference, and verification via pinact. It fills in the template's sections. The 'What is changed' section is detailed, and the Check List marks 'No code' with release notes set to NONE. The 'close #xxx' issue link was removed and not replaced, and no issue link is given. The 'Related changes' item on cherry-picking is left unchecked, which is acceptable. Overall the description is mostly complete.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
A rabbit checks the workflow trail, Each action has a pinned detail. No floating tags drift down the lane, The jobs keep running just the same. I nibble clover, pleased to see, A steady SHA for every key.
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: bd326ccc-e28c-4c21-8ef7-b40cfd5bd6ae
Commits
Reviewing files that changed from the base of the PR and between d9d2e87 and 3f6e079.
Files selected for processing: 11
.github/workflows/install.yaml
.github/workflows/integrate-cluster-cmd.yaml
.github/workflows/integrate-cluster-scale.yaml
.github/workflows/integrate-dm.yaml
.github/workflows/integrate-playground-ng.yaml
.github/workflows/integrate-playground.yaml
.github/workflows/integrate-tiup.yaml
.github/workflows/lint.yaml
.github/workflows/release-tiup.yaml
.github/workflows/reprotest.yaml
.github/workflows/server-private-files.yaml
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.
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
size/MDenotes a PR that changes 30-99 lines, ignoring generated files.
1 participant
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.
What problem does this PR solve?
Every GitHub Actions reference in
.github/workflows/was resolved through a mutable tag (or, in one case, a branch). If an upstream tag is moved, the same commit of this repository starts executing different third-party code with the workflow'sGITHUB_TOKENand secrets.What is changed and how it works?
All
uses:entries are pinned to the full-length commit SHA they currently resolve to, keeping the original tag as a trailing comment. No action version is upgraded and no workflow logic is modified.1 reference(s) needed manual handling because they pointed at a branch, which pinning tools do not resolve automatically:
uses: actions-js/push@968f4695ca558093eadb24ad83cc5891f47e0cdc # masterSuch references are pinned to the current commit of that branch and no longer follow upstream changes; they are updated by the dependency bot from now on.
Verification:
pinact run --checkreports no remaining unpinned references.Check List
Tests
Related changes
Release notes: