ROX-27905: Exclude example rpmdb from SBOMs#14065
Conversation
|
Skipping CI for Draft Pull Request. |
|
Images are ready for the commit at b5cfc2c. To use with deploy scripts, first |
|
Images are ready for the commit at c8c8cef. To use with deploy scripts, first |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #14065 +/- ##
==========================================
- Coverage 49.04% 49.03% -0.01%
==========================================
Files 2521 2521
Lines 183398 183398
==========================================
- Hits 89941 89933 -8
- Misses 86336 86345 +9
+ Partials 7121 7120 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
153bd8e to
551a5e5
Compare
|
/retest central-db-on-push |
|
/retest roxctl-on-push |
|
/test operator-on-push |
|
/test central-db-on-push |
551a5e5 to
6be865f
Compare
0891e22 to
f755a0a
Compare
f755a0a to
ce1e955
Compare
ce1e955 to
d5b9a32
Compare
because we'll check more than just the pipelines.
Note that Syft requires paths to start with `./` otherwise it fails like this: ``` [0000] ERROR ␛[31munable to get file resolver: invalid exclusion pattern(s): 'compliance/node/index/testdata/usr/share/rpm/rpmdb.sqlite' (must start with one of: './', '*/', or '**/')␛[0m ```
d5b9a32 to
b5cfc2c
Compare
|
/retest main-on-push |
|
@msugakov: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Took the one from StackRox, see stackrox/stackrox#14065
Took the one from StackRox, see stackrox/stackrox#14065
Took the one from StackRox and kept only the .syft.yaml validating part. See stackrox/stackrox#14065
Description
Syft picks up any rpmdb it finds, reads them all and presents the merged content in SBOM. It finds a test rpmdb that's in our repo in such a way. This change tells Syft to ignore the file and also teaches our CI to flag if there are more rpmdb files appear in the repo.
See https://redhat-internal.slack.com/archives/C04PZ7H0VA8/p1738328986559729
Config https://github.com/anchore/syft/wiki/configuration#list-of-configurable-values
Note for reviewers: I renamed an existing script and did some refactorings to it. After that, GitHub ultimately sees it as a removal and a new file creation. If you'd like to know what has changed, please review this PR by commits.
User-facing documentation
Testing and quality
Automated testing
How I validated my change
Validated output images to make sure
fc35entries aren't there comparing with a builds before this change.