-
Notifications
You must be signed in to change notification settings - Fork 16
Bump actions/checkout from 4 to 7 #84
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,7 @@ jobs: | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@v7 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win Harden checkout step: pin by SHA and set Line 19 currently references 🔒 Suggested fix - name: Checkout code
- uses: actions/checkout@v7
+ uses: actions/checkout@<full-length-commit-sha-for-v7>
+ with:
+ persist-credentials: falseAs per path instructions, ".github/workflows/**/*: Pin actions by full SHA, not tag" and "Least privilege: minimize GITHUB_TOKEN permissions." 🧰 Tools🪛 zizmor (1.26.1)[warning] 18-19: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false (artipacked) [error] 19-19: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy) (unpinned-uses) 🤖 Prompt for AI AgentsSources: Path instructions, Linters/SAST tools |
||
|
|
||
| - name: Fetch Dependabot Metadata | ||
| id: metadata | ||
|
|
||
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.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
Pin
actions/checkoutto a full commit SHA and disable credential persistence.Line 18 and Line 40 use a mutable tag (
@v7) and keep default credential persistence. This violates workflow security hardening and increases supply-chain/token exposure risk.🔒 Suggested fix
As per path instructions, ".github/workflows/**/*: Pin actions by full SHA, not tag" and "Least privilege: minimize GITHUB_TOKEN permissions."
Also applies to: 40-40
🧰 Tools
🪛 zizmor (1.26.1)
[warning] 17-18: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false
(artipacked)
[error] 18-18: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
🤖 Prompt for AI Agents
Sources: Path instructions, Linters/SAST tools