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 067d5b8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/vulnerability-scanning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
steps:
- run: |
echo "Publish environment variables"
Anchore-War-Build-Scan:
name: Grype scan war file
Anchore-Jar-War-Build-Scan:
name: Grype scan jar and war file
runs-on: ubuntu-latest
permissions:
actions: read
Expand All @@ -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 067d5b8

Please sign in to comment.