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