Skip to content

Commit

Permalink
Merge pull request #7386 from ballerina-platform/fix-trivy-cache
Browse files Browse the repository at this point in the history
Overwrite the trivy cache directory
  • Loading branch information
TharmiganK authored Nov 20, 2024
2 parents ee6f525 + 5a737bd commit 61c2ea0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/central-publish-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
timeout: "10m0s"
exit-code: "1"
scanners: "vuln"
cache-dir: "/tmp/trivy-cache"

- name: Ballerina Central Dev Push
if: ${{ inputs.environment == 'DEV CENTRAL' }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-package-connector-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:
exit-code: "1"
skip-dirs: "examples"
scanners: "vuln"
cache-dir: "/tmp/trivy-cache"

- name: Get Release Version
run: echo "VERSION=$((grep -w 'version' | cut -d= -f2) < gradle.properties | rev | cut -d- -f2 | rev)" >> $GITHUB_ENV
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-package-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
timeout: "10m0s"
exit-code: "1"
scanners: "vuln"
cache-dir: "/tmp/trivy-cache"

- name: Get Release Version
run: echo "VERSION=$((grep -w 'version' | cut -d= -f2) < gradle.properties | rev | cut --complement -d- -f1 | rev)" >> $GITHUB_ENV
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/s4hana-release-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
exit-code: "1"
skip-dirs: "resources"
scanners: "vuln"
cache-dir: "/tmp/trivy-cache"

- name: Get Release Version
run: echo "VERSION=$((grep -w 'version' | cut -d= -f2) < gradle.properties | rev | cut -d- -f2 | rev)" >> $GITHUB_ENV
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/s4hana-trivy-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ jobs:
exit-code: "1"
skip-dirs: "resources"
scanners: "vuln"
cache-dir: "/tmp/trivy-cache"
1 change: 1 addition & 0 deletions .github/workflows/trivy-scan-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ jobs:
timeout: "10m0s"
exit-code: "1"
scanners: "vuln"
cache-dir: "/tmp/trivy-cache"

0 comments on commit 61c2ea0

Please sign in to comment.