-
Notifications
You must be signed in to change notification settings - Fork 405
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
ci: fix osv vulnerability and license scans and add license overrides #4157
Conversation
Signed-off-by: Shahar Harari <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4157 +/- ##
==========================================
- Coverage 67.94% 67.93% -0.02%
==========================================
Files 187 187
Lines 23019 23019
==========================================
- Hits 15641 15637 -4
- Misses 6264 6267 +3
- Partials 1114 1115 +1 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Shahar Harari <[email protected]>
Signed-off-by: Shahar Harari <[email protected]>
Signed-off-by: Shahar Harari <[email protected]>
Signed-off-by: Shahar Harari <[email protected]>
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!
@zirain - WDYT? Do you see other uses for this lib? if not, by replacing it, we can finally start enforcing OSV scans. |
it's fine to replace. |
[[PackageOverrides]] | ||
name = "github.com/grafana/tempo" | ||
version = "1.5.0" | ||
ecosystem = "Go" | ||
# Override the license to an allowed one until https://github.com/google/osv-scanner/issues/1124 is resolved and we can skip it from licnese scanning instead | ||
license.override = ["Apache-2.0"] | ||
reason = "This package is only used in e2e tests so we can ignore its license" |
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.
we change change it to zipkin or other backend.
does loki has same problem?
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.
Loki has the same AGPL-3.0
license.
/retest |
I'll open a separate PR for this. |
What this PR does / why we need it:
Disable call analysis in both osv vulnerability and license scans until [GitHub Action] scan fails on go projects that import C code google/osv-scanner#1220 is resolved.
Add license overrides for packages with unidentified licenses and for packages which got license exception from CNCF.
Move osv-scanner config file to default location (
osv-scanner.toml
) in order to make it reusable also by openssf-scorecard.There are 2 remaining packages with an unapproved license (both have
MPL-2.0
license):github.com/hashicorp/go-getter
github.com/hashicorp/go-safetemp
- imported bygithub.aaakk.us.kg/hashicorp/go-getter
See related CNCF issue regarding license exception request for these packages: [License Exception Request] Additional Hashicorp libraries under MPL / MIT cncf/foundation#624.
We can either wait for this issue to be resolved (it's quite old) or consider to remove
github.com/hashicorp/go-getter
usage.We can get rid of github.com/hashicorp/go-getter package by replacing the usage of convert.ValidateOutputPath function with a local copy. This is the function: https://github.com/replicatedhq/troubleshoot/blob/main/pkg/convert/output.go#L10-L19