Skip to content

Commit 8f0c1a7

Browse files
committed
put reports into WORKSPACE_PATH instead of ACTION_PATH
1 parent 16d4008 commit 8f0c1a7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

actions/docker/scan-repo/action.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,10 @@ runs:
8181
shell: bash
8282
env:
8383
ACTION_PATH: ${{ github.action_path }}
84+
WORKSPACE_PATH: ${{ github.workspace }}
8485
run: |
85-
trivy_dir="${ACTION_PATH}/bin"
86-
mkdir "${trivy_dir}"
86+
trivy_dir="${WORKSPACE_PATH}/trivy"
87+
mkdir -p "${trivy_dir}"
8788
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh |
8889
sh -s -- -b "${trivy_dir}" v0.67.0
8990

0 commit comments

Comments
 (0)