Skip to content

Commit

Permalink
Update trivy-scan.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
onobc authored Dec 11, 2023
1 parent eaa3946 commit 849ff72
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/trivy-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ jobs:
- name: Build
run: |
./gradlew clean build -x integrationTest -x test
mkdir ./maven-repo-local
curdir=$(pwd)
echo "*** BONO curdir = $curdir"
mkdir $curdir/maven-repo-local
echo "*** BONO created..."
ls ./maven-repo-local
./gradlew --info -Dmaven.repo.local=./maven-repo-local pTML
mrl=$(ls $curdir/maven-repo-local)
echo $mrl
./gradlew --info -Dmaven.repo.local=$curdir/maven-repo-local pTML
echo "*** BONO after pTML..."
ls ./maven-repo-local
mrl=$(ls $curdir/maven-repo-local)
echo $mrl
- name: Run Trivy scan in repo mode
uses: aquasecurity/trivy-action@master
with:
Expand All @@ -28,7 +32,7 @@ jobs:
output: 'trivy-results.txt'
severity: 'CRITICAL,HIGH'
file-patterns: 'pom:.*\.pom'
scan-ref: './maven-repo-local/repository/org/springframework/pulsar'
scan-ref: '/github/workspace/maven-repo-local/org/springframework/pulsar'
exit-code: 1
- name: Upload Trivy scan results
if: failure()
Expand Down

0 comments on commit 849ff72

Please sign in to comment.