From 58d45f942baa894e3e49a55687b3e76458afd033 Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Fri, 18 Oct 2024 11:18:28 +0530 Subject: [PATCH] Update trivy scan --- .github/workflows/publish-release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 605392e..389078a 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -49,7 +49,7 @@ jobs: uses: aquasecurity/trivy-action@master with: scan-type: 'fs' - scan-ref: '/github/workspace/' + scan-ref: '.' format: 'table' timeout: '10m0s' exit-code: '1' @@ -62,6 +62,8 @@ jobs: packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }} packagePublishRepo: ${{ github.repository }} run: | + rm -rf .cache + rm -rf trivy git stash ./gradlew release -Prelease.useAutomaticVersion=true ./gradlew -Pversion=${VERSION} publish -x test