From 129bd59c97254fce9df0e5a3dcf84d371e95d41e Mon Sep 17 00:00:00 2001 From: Kalaiyarasi Date: Tue, 28 Sep 2021 10:58:19 +0530 Subject: [PATCH] Skip build directory from Trivy scan --- .github/workflows/central-publish.yml | 1 + .github/workflows/publish-release.yml | 1 + .github/workflows/trivy-scan.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/central-publish.yml b/.github/workflows/central-publish.yml index c4363599..b7377473 100644 --- a/.github/workflows/central-publish.yml +++ b/.github/workflows/central-publish.yml @@ -24,6 +24,7 @@ jobs: with: scan-type: 'fs' scan-ref: '/github/workspace/ballerina' + skip-dirs: 'build' format: 'table' exit-code: '1' - name: Publish artifact diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 67f9d05f..19c7db60 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -28,6 +28,7 @@ jobs: with: scan-type: 'fs' scan-ref: '/github/workspace/ballerina' + skip-dirs: 'build' format: 'table' exit-code: '1' - name: Set version env variable diff --git a/.github/workflows/trivy-scan.yml b/.github/workflows/trivy-scan.yml index c65ce29c..62f8478d 100644 --- a/.github/workflows/trivy-scan.yml +++ b/.github/workflows/trivy-scan.yml @@ -26,5 +26,6 @@ jobs: with: scan-type: 'fs' scan-ref: '/github/workspace/ballerina' + skip-dirs: 'build' format: 'table' exit-code: '1'