diff --git a/.github/workflows/central-publish-template.yml b/.github/workflows/central-publish-template.yml index b4f9b513..b6cd0e41 100644 --- a/.github/workflows/central-publish-template.yml +++ b/.github/workflows/central-publish-template.yml @@ -44,6 +44,9 @@ jobs: - name: Run Trivy vulnerability scanner uses: aquasecurity/trivy-action@master + env: + TRIVY_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db + TRIVY_JAVA_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-java-db,public.ecr.aws/aquasecurity/trivy-java-db with: scan-type: "rootfs" scan-ref: "${{ github.workspace }}/ballerina/lib" diff --git a/.github/workflows/release-package-connector-template.yml b/.github/workflows/release-package-connector-template.yml index 887b307f..d74e801e 100644 --- a/.github/workflows/release-package-connector-template.yml +++ b/.github/workflows/release-package-connector-template.yml @@ -69,6 +69,9 @@ jobs: - name: Run Trivy Vulnerability Scanner uses: aquasecurity/trivy-action@master + env: + TRIVY_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db + TRIVY_JAVA_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-java-db,public.ecr.aws/aquasecurity/trivy-java-db with: scan-type: "rootfs" scan-ref: "${{ github.workspace }}/ballerina/lib" diff --git a/.github/workflows/release-package-template.yml b/.github/workflows/release-package-template.yml index c92e1f47..2f0c38a7 100644 --- a/.github/workflows/release-package-template.yml +++ b/.github/workflows/release-package-template.yml @@ -51,6 +51,9 @@ jobs: - name: Run Trivy Vulnerability Scanner uses: aquasecurity/trivy-action@master + env: + TRIVY_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db + TRIVY_JAVA_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-java-db,public.ecr.aws/aquasecurity/trivy-java-db with: scan-type: "rootfs" scan-ref: "${{ github.workspace }}/ballerina/lib" diff --git a/.github/workflows/s4hana-release-template.yml b/.github/workflows/s4hana-release-template.yml index e9aa07ec..385af730 100644 --- a/.github/workflows/s4hana-release-template.yml +++ b/.github/workflows/s4hana-release-template.yml @@ -61,6 +61,9 @@ jobs: - name: Run Trivy Vulnerability Scanner uses: aquasecurity/trivy-action@master + env: + TRIVY_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db + TRIVY_JAVA_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-java-db,public.ecr.aws/aquasecurity/trivy-java-db with: scan-type: "rootfs" scan-ref: "${{ github.workspace }}/ballerina" diff --git a/.github/workflows/s4hana-trivy-scan.yml b/.github/workflows/s4hana-trivy-scan.yml index 274707cc..1df30c67 100644 --- a/.github/workflows/s4hana-trivy-scan.yml +++ b/.github/workflows/s4hana-trivy-scan.yml @@ -27,6 +27,9 @@ jobs: - name: Run Trivy vulnerability scanner uses: aquasecurity/trivy-action@master + env: + TRIVY_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db + TRIVY_JAVA_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-java-db,public.ecr.aws/aquasecurity/trivy-java-db with: scan-type: "rootfs" scan-ref: "${{ github.workspace }}/ballerina" diff --git a/.github/workflows/trivy-scan-template.yml b/.github/workflows/trivy-scan-template.yml index 6730f91b..2873b40e 100644 --- a/.github/workflows/trivy-scan-template.yml +++ b/.github/workflows/trivy-scan-template.yml @@ -32,6 +32,9 @@ jobs: - name: Run Trivy vulnerability scanner uses: aquasecurity/trivy-action@master + env: + TRIVY_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db + TRIVY_JAVA_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-java-db,public.ecr.aws/aquasecurity/trivy-java-db with: scan-type: "rootfs" scan-ref: "${{ github.workspace }}/ballerina/lib"