Skip to content

Commit

Permalink
ci: vulnerability-scanning for both jar and war
Browse files Browse the repository at this point in the history
  • Loading branch information
takb committed Feb 1, 2024
1 parent ab2c3b1 commit 3c53052
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/vulnerability-scanning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ jobs:
- name: Build war file
run: |
mvn -B package -DskipTests -DCI=true
# Copy the .war file to a custom location where grype can find it
# Copy the .jar file to a custom location where grype can find it
mkdir -p ors-api/target/grype
cp ors-api/target/ors.jar ors-api/target/grype/ors.jar
mvn -B package -DskipTests -PbuildWar -DCI=true
cp ors-api/target/ors.war ors-api/target/grype/ors.war
- name: Run the Anchore Grype scan action to console
uses: anchore/scan-action@v3
Expand Down

0 comments on commit 3c53052

Please sign in to comment.