Skip to content

Commit 302c013

Browse files
bennyjoclaude
andcommitted
ci(snyk): tag CLI scans with public repo URL so they use the open-source quota
Snyk CLI scans without --remote-repo-url can't read GitHub visibility and default to counting against the private test quota, even for public repos. Pass the repo URL so these scans land in the unlimited open-source buckets. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 62b1fda commit 302c013

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/snyk-security.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ jobs:
3535
uses: snyk/actions/setup@806182742461562b67788a64410098c9d9b96adb
3636

3737
- name: Snyk Code test
38-
run: snyk code test --sarif > snyk-code.sarif
38+
run: snyk code test --remote-repo-url=https://github.com/${{ github.repository }} --sarif > snyk-code.sarif
3939
continue-on-error: true
4040

4141
- name: Snyk Open Source monitor
42-
run: snyk monitor --file=requirements.txt --package-manager=pip --skip-unresolved
42+
run: snyk monitor --file=requirements.txt --package-manager=pip --skip-unresolved --remote-repo-url=https://github.com/${{ github.repository }}
4343

4444
- name: Upload result to GitHub Code Scanning
4545
uses: github/codeql-action/upload-sarif@v3

0 commit comments

Comments
 (0)