-
Notifications
You must be signed in to change notification settings - Fork 507
feat: add flag to suppress "no package sources found" error #1943
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
Conversation
308ad89 to
fac7d0f
Compare
another-rex
left a comment
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.
LGTM, thanks!
e566d08 to
27e8db6
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1943 +/- ##
==========================================
- Coverage 65.58% 65.57% -0.02%
==========================================
Files 167 167
Lines 16060 16071 +11
==========================================
+ Hits 10533 10538 +5
- Misses 4861 4868 +7
+ Partials 666 665 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
f70035c to
ecb8c7e
Compare
ecb8c7e to
f4067f3
Compare
|
@another-rex this is failing CI - I was still trying to sort the test suite out |
Currently we always consider it an error if the scanner does not find any supported files to scan as we assume in most cases it's expected the scanner will be check something and this avoids thinking that there are no vulnerabilities.
While this is a reasonable assumption for the default behaviour, it's annoying for enterprise types that want to use the GitHub Actions action as a required "always on" action for every repository regardless of what they actually hold - to workaround this currently the action eats the 128 exit code, but that's not ideal as it introduces the risk we're trying to avoid by having the error in the first place.
To give more flexibility, I've introduced a new flag to the scanner so that users can explicitly signal they don't want "no lockfiles being found" to be treated as an error, and in turn letting us deprecate our existing exit code overriding workaround in the GHA action in favor of having this flag passed in