-
Notifications
You must be signed in to change notification settings - Fork 0
chore(ci): pin actions to immutable commit SHAs #24
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
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 |
|---|---|---|
|
|
@@ -20,11 +20,11 @@ jobs: | |
| go-version: [1.24.x] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v5.0.0 | ||
| - uses: actions/setup-go@v6.1.0 | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| - uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0 | ||
|
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. 🩺 Stability & Availability | 🟠 Major | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: #!/bin/bash
set -u
printf '%s\n' '--- workflow entries ---'
sed -n '18,28p' .github/workflows/ci.yml
sed -n '16,24p' .github/workflows/release-please.yml
printf '%s\n' '--- setup-go pinned metadata ---'
curl -fsSL https://api.github.com/repos/actions/setup-go/contents/action.yml?ref=4dc6199c7b1a012772edbd06daecab0f50c9053c \
| jq -r '.download_url, .content' 2>/dev/null | head -3
curl -fsSL https://raw.githubusercontent.com/actions/setup-go/4dc6199c7b1a012772edbd06daecab0f50c9053c/action.yml
printf '%s\n' '--- release-please pinned metadata ---'
curl -fsSL https://raw.githubusercontent.com/googleapis/release-please-action/16a9c90856f42705d54a6fda1823352bdc62cf38/action.yml
curl -fsSL https://raw.githubusercontent.com/googleapis/release-please-action/16a9c90856f42705d54a6fda1823352bdc62cf38/package.json \
| jq '{name,version,engines,dependencies}'
printf '%s\n' '--- v5.0.0 metadata ---'
curl -fsSL https://raw.githubusercontent.com/googleapis/release-please-action/v5.0.0/action.yml
curl -fsSL https://raw.githubusercontent.com/googleapis/release-please-action/v5.0.0/package.json \
| jq '{name,version,engines,dependencies}'Repository: TrogonStack/trogonerror Length of output: 8917 🏁 Script executed: #!/bin/bash
set -u
printf '%s\n' '--- setup-go v6.2.0 ref ---'
curl -fsSL 'https://api.github.com/repos/actions/setup-go/git/ref/tags/v6.2.0' \
| jq '{ref, object}'
printf '%s\n' '--- setup-go v6.2.0 metadata ---'
curl -fsSL 'https://raw.githubusercontent.com/actions/setup-go/v6.2.0/action.yml' \
| sed -n '/^runs:/,$p'
printf '%s\n' '--- cited runner notice ---'
curl -fsSL 'https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/?utm_source=openai' \
| sed -n '1,5p'Repository: TrogonStack/trogonerror Length of output: 750 🏁 Script executed: #!/bin/bash
set -u
curl -fsSL 'https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/?utm_source=openai' \
| sed 's/<[^>]*>/ /g; s/ / /g; s/&/\&/g' \
| tr -s '[:space:]' ' ' \
| grep -oE '.{0,180}(Node 20|September 23, 2026|Sep 23, 2026|GitHub Actions runners).{0,260}' \
| head -10Repository: TrogonStack/trogonerror Length of output: 2824 Replace both Node 20-based action pins before September 23, 2026. Both pinned actions use Node 20. Update 📍 Affects 2 files
🤖 Prompt for AI Agents |
||
| with: | ||
| go-version: ${{ matrix.go-version }} | ||
| - uses: golangci/golangci-lint-action@v9.1.0 | ||
| - uses: golangci/golangci-lint-action@e7fa5ac41e1cf5b7d48e45e42232ce7ada589601 # v9.1.0 | ||
| with: | ||
| version: latest | ||
| - run: go test -race -v ./... | ||
|
|
||
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 | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: TrogonStack/trogonerror
Length of output: 566
Sensitive Data Exposure (CWE-522): Insufficiently Protected Credentials
Reachability: External · Exploitability: Trivial
Disable checkout credential persistence.
The
pull_requestjob runs untrusted code with a read-onlyGITHUB_TOKEN. Setpersist-credentials: falseunless a later step requires authenticated Git operations.🧰 Tools
🪛 zizmor (1.29.0)
[warning] 23-23: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false
(artipacked)
🤖 Prompt for AI Agents
Source: Linters/SAST tools