From 3a88eb03716762084d55d48c17df090cc485d0ae Mon Sep 17 00:00:00 2001 From: Danesh Kuruppu Date: Wed, 30 Oct 2024 10:53:39 +0530 Subject: [PATCH 1/2] Fix the error lstat /github/workspace/ballerina/lib: no such file or directory --- .github/workflows/publish-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 5b3d638..b4b595a 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -33,7 +33,7 @@ jobs: uses: aquasecurity/trivy-action@master with: scan-type: 'rootfs' - scan-ref: '/github/workspace/ballerina/lib' + scan-ref: '${{ github.workspace.ballerina.lib }}/' format: 'table' timeout: '10m0s' exit-code: '1' From 640625694cd35547ce237c185dc86291112bd393 Mon Sep 17 00:00:00 2001 From: Danesh Kuruppu Date: Wed, 30 Oct 2024 11:18:53 +0530 Subject: [PATCH 2/2] Downgrade the trivy to 0.23.0 --- .github/workflows/publish-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index b4b595a..63650d2 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -30,10 +30,10 @@ jobs: 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 - uses: aquasecurity/trivy-action@master + uses: aquasecurity/trivy-action@0.23.0 with: scan-type: 'rootfs' - scan-ref: '${{ github.workspace.ballerina.lib }}/' + scan-ref: '/github/workspace/ballerina/lib' format: 'table' timeout: '10m0s' exit-code: '1'