ci(snyk): tag CLI scans with public repo URL so they use the open-source quota#2539
Open
bennyjo wants to merge 1 commit into
Open
ci(snyk): tag CLI scans with public repo URL so they use the open-source quota#2539bennyjo wants to merge 1 commit into
bennyjo wants to merge 1 commit into
Conversation
…rce 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>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Add
--remote-repo-url=https://github.com/${{ github.repository }}to both thesnyk code testandsnyk monitorcommands in.github/workflows/snyk-security.yml.Why
Snyk CLI scans without
--remote-repo-urlcan't read the repository's GitHub visibility, so they default to counting against the private test quota — even though this repo is public. On the Snyk Free plan that burns the limited private-manifest and Snyk Code allowances instead of the unlimited open-source buckets these public-repo scans are entitled to.Passing the repo URL tells the CLI which public repo it's scanning, so future runs are classified as open-source and stop consuming quota.
${{ github.repository }}resolves toowner/repoautomatically.The flag is supported by both
snyk code testandsnyk monitorper the Snyk CLI docs; no behavioural change beyond classification.Part of an org-wide fix across all repos running the shared
snyk-security.yml.🤖 Generated with Claude Code