-
Notifications
You must be signed in to change notification settings - Fork 0
chore: pin all GitHub Actions to commit SHAs #420
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
bcf56fe
d7d6884
048a969
8873600
19e9a9a
f912325
86a635e
a5bd0dd
cad3483
cf75f33
da57a89
519af07
53e7b39
a14fc79
1aefece
afee807
728a940
3267a84
e3d5cee
fab1068
8a22fc7
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 |
|---|---|---|
|
|
@@ -13,8 +13,8 @@ jobs: | |
| permissions: | ||
| contents: read | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-go@v5 | ||
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
| - uses: actions/setup-go@330a01c490aca151604b8cf639adc76d48f6c5d4 | ||
| with: | ||
|
Comment on lines
+17
to
18
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. 🧩 Analysis chain🏁 Script executed: cat -n .github/workflows/benchmarks.ymlRepository: KooshaPari/Tracera Length of output: 1214 🌐 Web query:
💡 Result: The GitHub repo for setup-go is actions/setup-go (GitHub Actions action “actions/setup-go”, used to set up a Go toolchain in CI). Your specific identifier “330a01c490aca151604b8cf639adc76d48f6c5d4” does not resolve to a commit in the canonical actions/setup-go repository in the public web results I found. The hash may instead refer to some other repo/fork, or to a truncated/non-matching value used in another system log. Authoritative references for the action itself (usage + behavior): - https://github.com/actions/setup-go - https://github.com/actions/setup-go/blob/main/action.yml If you want, paste the exact URL where you saw that 330a… hash (or the file/log snippet around it), and I can trace it to the exact commit/repo or explain what it refers to. Citations:
🌐 Web query:
💡 Result: The string "6f8efc29b200d32929f49075959781ed54ec270c" is the Git commit SHA (short or full ref) for version v3.5.0 of the GitHub Actions "actions/cache" action. It is used in GitHub Actions workflows pinned to a specific commit for reproducibility and security, e.g., uses: actions/cache@6f8efc2. This version is deprecated and runs on Node.js 20, which is scheduled for deprecation (warnings appear in workflows using it as of 2026). Users are advised to upgrade to v5.0.4 or later, which supports Node.js 24. The query mentions "upload-artifact" but matches this cache action ref, commonly used alongside upload-artifact in workflows. Citations:
🌐 Web query:
💡 Result: The latest actions/setup-go v5 is v5.5.0 (released 2025-05-08). However, the sources found in this research do not explicitly provide the full 40-character commit SHA that corresponds to the v5.5.0 tag. What you can use instead: - Use the tag itself in workflows: uses: actions/setup-go@v5 (or Citations:
🌐 Web query:
💡 Result: The latest SHA for actions/upload-artifact@v4 (the v4 branch) is not explicitly stated in search results, but the v4 branch exists and points to the latest commit on that maintenance branch for v4.x releases. The most recent v4.x release mentioned is v4.6.0 from January 2025 (https://github.com/actions/upload-artifact/releases/tag/v4.6.0). When using actions/upload-artifact@v4 in GitHub Actions workflows, GitHub resolves it to the latest commit SHA on the v4 branch. A specific pinned SHA example from a related action is ea165f8d65b6e75b540449e92b4886f43607fa02 (from September 2025), likely corresponding to a v4.x version at that time. The repository's main branch latest release is v7.0.1 (April 2026), but v4 remains available for compatibility. Citations:
🌐 Web query:
💡 Result: The GitHub commit 330a01c490aca151604b8cf639adc76d48f6c5d4 is the merge commit for pull request Citations:
SHAs in the benchmark workflow are assigned to the wrong action repositories and will cause workflow failures. Line 17 pins Line 27 pins These misassignments will cause the workflow to fail immediately when GitHub attempts to fetch the commits from the incorrect repositories. 🤖 Prompt for AI Agents |
||
| go-version: '1.23' | ||
| cache-dependency-path: backend/go.sum | ||
|
|
@@ -24,7 +24,7 @@ jobs: | |
| GOTOOLCHAIN: local | ||
| run: go test ./benchmarks/... -bench=. -benchmem -count=3 -timeout=5m | tee benchmark-results.txt | ||
| - name: Upload benchmark results | ||
| uses: actions/upload-artifact@v4 | ||
| uses: actions/upload-artifact@6f8efc29b200d32929f49075959781ed54ec270c | ||
| with: | ||
| name: go-benchmark-results | ||
| path: backend/benchmark-results.txt | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,7 @@ jobs: | |
| outputs: | ||
| code: ${{ steps.filter.outputs.code }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
| with: | ||
| fetch-depth: 0 | ||
| - id: filter | ||
|
|
@@ -53,10 +53,10 @@ jobs: | |
| - 5432:5432 | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| uses: actions/setup-python@0057852bfaa89a56745cba8c7296529d2fc39830 | ||
|
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. Wrong SHA pins setup-python to github-script actionHigh Severity The SHA Additional Locations (2)Reviewed by Cursor Bugbot for commit fab1068. Configure here. |
||
| with: | ||
| python-version: '3.11' | ||
|
|
||
|
|
@@ -83,10 +83,10 @@ jobs: | |
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| uses: actions/setup-python@0057852bfaa89a56745cba8c7296529d2fc39830 | ||
| with: | ||
| python-version: '3.11' | ||
|
|
||
|
|
@@ -111,7 +111,7 @@ jobs: | |
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v2 | ||
|
|
@@ -129,7 +129,7 @@ jobs: | |
| if: github.ref == 'refs/heads/main' && github.event_name == 'push' | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
|
||
| - name: Deploy to production | ||
| run: | | ||
|
|
||


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.
🧩 Analysis chain
🏁 Script executed:
Repository: KooshaPari/Tracera
Length of output: 9397
🌐 Web query:
Dependabot directories exclude-paths configuration options github yml💡 Result:
The exclude-paths option in Dependabot's dependabot.yml configuration allows you to specify directories and files to ignore when scanning for manifests and dependencies. It uses glob patterns relative to the directory specified in the update configuration. Key details: - Purpose: Prevents Dependabot from creating update PRs for dependencies in test assets, vendored code, examples, or other non-production locations. - Location: Under each package-ecosystem entry in the updates section. - Default behavior: Scans all files in the specified directory unless excluded. - Syntax: List of glob patterns, e.g.: version: 2 updates: - package-ecosystem: "npm" directory: "/" schedule: interval: "daily" exclude-paths: - "src/test/assets" - "vendor/" - "src/.js" - "src/test/helper.js" - Supported glob patterns: (recursive), * (single segment), e.g., test/, /.md, *.lock. - Scope: Applies per ecosystem; patterns relative to directory. Does not affect security updates (as of 2026). - Related: Use with directory or directories (which supports globs). Complements ignore for dependency names/versions. This feature reached general availability in August 2025.
Citations:
Replace the negated
directoriesentries withexclude-paths.The negated directory syntax
!/ARCHIVE/**is not supported in Dependabot's documented schema. The proper mechanism for excluding paths isexclude-pathswith positive glob patterns. Update both the pip (lines 99-101) and github-actions (lines 249-251) blocks to usedirectory: "/"withexclude-paths: ["ARCHIVE/**"].♻️ Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents