Skip to content
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

trivy: adds maven-invoker-plugin ignoring config #1420

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions build-bin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ On deploy:
On deploy_bom:
* The artifact `brave-bom` is deployed. Intentionally separate to allow a retry.

We also include a [Trivy configuration](trivy.yaml) which works around its lack
of support for maven-invoker-plugin. Run `./build-bin/trivy` from the project
root to get a vulnerability assessment.

[//]: # (Below here should be standard for all projects)

## Build Overview
Expand Down
6 changes: 6 additions & 0 deletions build-bin/trivy
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh -ue

# This script deploys a master or release version.
#
# See [README.md] for an explanation of this and how CI should use it.
trivy -c $(dirname "$0")/trivy.yaml repo .
7 changes: 7 additions & 0 deletions build-bin/trivy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# As of Feb 2024, Trivy has no plans to handle maven-invoker-plugin.
# Skip to reduce noise about intentional tests against old versions.
# https://github.com/aquasecurity/trivy/discussions/5787
image:
skip-files:
- "**/src/it/*/pom.xml"
- "**/target/it/*/pom.xml"