@@ -7,8 +7,8 @@ if [ "$INPUT_TFSEC_VERSION" != "latest" ]; then
7
7
TFSEC_VERSION=" /tags/${INPUT_TFSEC_VERSION} "
8
8
fi
9
9
10
- wget -O - -q " $( wget -q https://api.github.com/repos/aquasecurity/tfsec/releases${TFSEC_VERSION} -O - | grep -m 1 -o -E " https://.+?tfsec-linux-amd64" | head -n1) " > tfsec-linux-amd64
11
- wget -O - -q " $( wget -q https://api.github.com/repos/aquasecurity/tfsec/releases${TFSEC_VERSION} -O - | grep -m 1 -o -E " https://.+?tfsec_checksums.txt" | head -n1) " > tfsec.checksums
10
+ wget -O - -q " $( wget -q " https://api.github.com/repos/aquasecurity/tfsec/releases${TFSEC_VERSION} " -O - | grep -m 1 -o -E " https://.+?tfsec-linux-amd64" | head -n1) " > tfsec-linux-amd64
11
+ wget -O - -q " $( wget -q " https://api.github.com/repos/aquasecurity/tfsec/releases${TFSEC_VERSION} " -O - | grep -m 1 -o -E " https://.+?tfsec_checksums.txt" | head -n1) " > tfsec.checksums
12
12
13
13
grep tfsec-linux-amd64 tfsec.checksums > tfsec-linux-amd64.checksum
14
14
sha256sum -c tfsec-linux-amd64.checksum
@@ -19,8 +19,8 @@ if [ "$INPUT_COMMENTER_VERSION" != "latest" ]; then
19
19
COMMENTER_VERSION=" tags/${INPUT_COMMENTER_VERSION} "
20
20
fi
21
21
22
- wget -O - -q " $( wget -q https://api.github.com/repos/aquasecurity/tfsec-pr-commenter-action/releases/${COMMENTER_VERSION} -O - | grep -o -E " https://.+?commenter-linux-amd64" ) " > commenter-linux-amd64
23
- wget -O - -q " $( wget -q https://api.github.com/repos/aquasecurity/tfsec-pr-commenter-action/releases/${COMMENTER_VERSION} -O - | grep -o -E " https://.+?checksums.txt" ) " > commenter.checksums
22
+ wget -O - -q " $( wget -q " https://api.github.com/repos/aquasecurity/tfsec-pr-commenter-action/releases/${COMMENTER_VERSION} " -O - | grep -o -E " https://.+?commenter-linux-amd64" ) " > commenter-linux-amd64
23
+ wget -O - -q " $( wget -q " https://api.github.com/repos/aquasecurity/tfsec-pr-commenter-action/releases/${COMMENTER_VERSION} " -O - | grep -o -E " https://.+?checksums.txt" ) " > commenter.checksums
24
24
25
25
grep commenter-linux-amd64 commenter.checksums > commenter-linux-amd64.checksum
26
26
sha256sum -c commenter-linux-amd64.checksum
@@ -41,5 +41,5 @@ if [ -n "${INPUT_TFSEC_FORMATS}" ]; then
41
41
TFSEC_OUT_OPTION=" ${TFSEC_OUT_OPTION% .* } "
42
42
fi
43
43
44
- tfsec --out=${TFSEC_OUT_OPTION} --format=${TFSEC_FORMAT_OPTION} --soft-fail ${TFSEC_ARGS_OPTION} " ${INPUT_WORKING_DIRECTORY} "
44
+ tfsec --out=${TFSEC_OUT_OPTION} --format=" ${TFSEC_FORMAT_OPTION} " --soft-fail " ${TFSEC_ARGS_OPTION} " " ${INPUT_WORKING_DIRECTORY} "
45
45
commenter
0 commit comments