diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ada5dd74f089..eec199e20115 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,6 +97,9 @@ jobs: - name: Build Keycloak uses: ./.github/actions/build-keycloak + - name: Trivy + run: ./mvnw trivy:trivy-scan + - name: Check for unstaged proto.lock files if: github.event_name == 'pull_request' && startsWith(github.event.pull_request.base.ref, 'release/') run: git diff --name-only --exit-code -- "**/proto.lock" diff --git a/.trivyignore b/.trivyignore new file mode 100644 index 000000000000..bc372c40a69c --- /dev/null +++ b/.trivyignore @@ -0,0 +1,7 @@ +CVE-2015-7501 +CVE-2019-17571 +CVE-2022-23305 +CVE-2022-23307 +CVE-2022-4492 +CVE-2022-45047 +CVE-2024-52046 \ No newline at end of file diff --git a/boms/pom.xml b/boms/pom.xml index a9f5de04ddb8..f27ad3c117f7 100644 --- a/boms/pom.xml +++ b/boms/pom.xml @@ -78,11 +78,6 @@ ${jboss.repo.nexusUrl} - - com.diffplug.spotless - spotless-maven-plugin - ${spotless-plugin.version} - diff --git a/pom.xml b/pom.xml index d3cabd03cb9f..f616a5a78507 100644 --- a/pom.xml +++ b/pom.xml @@ -1557,6 +1557,16 @@ + + tech.orla + trivy-maven-plugin + 1.0.1 + + true + CRITICAL + os,library + +