From 5a737bd1295b8125847c86c66ed412c795ecdc0f Mon Sep 17 00:00:00 2001 From: TharmiganK Date: Wed, 20 Nov 2024 10:56:15 +0530 Subject: [PATCH] Overwrite the trivy cache directory --- .github/workflows/central-publish-template.yml | 1 + .github/workflows/release-package-connector-template.yml | 1 + .github/workflows/release-package-template.yml | 1 + .github/workflows/s4hana-release-template.yml | 1 + .github/workflows/s4hana-trivy-scan.yml | 1 + .github/workflows/trivy-scan-template.yml | 1 + 6 files changed, 6 insertions(+) diff --git a/.github/workflows/central-publish-template.yml b/.github/workflows/central-publish-template.yml index a579c1a7..a0cc72d5 100644 --- a/.github/workflows/central-publish-template.yml +++ b/.github/workflows/central-publish-template.yml @@ -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' }} diff --git a/.github/workflows/release-package-connector-template.yml b/.github/workflows/release-package-connector-template.yml index a760f961..74c62090 100644 --- a/.github/workflows/release-package-connector-template.yml +++ b/.github/workflows/release-package-connector-template.yml @@ -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 diff --git a/.github/workflows/release-package-template.yml b/.github/workflows/release-package-template.yml index d70cc647..34067970 100644 --- a/.github/workflows/release-package-template.yml +++ b/.github/workflows/release-package-template.yml @@ -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 diff --git a/.github/workflows/s4hana-release-template.yml b/.github/workflows/s4hana-release-template.yml index 49a727f4..35131e27 100644 --- a/.github/workflows/s4hana-release-template.yml +++ b/.github/workflows/s4hana-release-template.yml @@ -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 diff --git a/.github/workflows/s4hana-trivy-scan.yml b/.github/workflows/s4hana-trivy-scan.yml index f0d42716..dac53376 100644 --- a/.github/workflows/s4hana-trivy-scan.yml +++ b/.github/workflows/s4hana-trivy-scan.yml @@ -38,3 +38,4 @@ jobs: exit-code: "1" skip-dirs: "resources" scanners: "vuln" + cache-dir: "/tmp/trivy-cache" diff --git a/.github/workflows/trivy-scan-template.yml b/.github/workflows/trivy-scan-template.yml index 9bf31ca4..2dc7e37c 100644 --- a/.github/workflows/trivy-scan-template.yml +++ b/.github/workflows/trivy-scan-template.yml @@ -42,3 +42,4 @@ jobs: timeout: "10m0s" exit-code: "1" scanners: "vuln" + cache-dir: "/tmp/trivy-cache"