Skip to content

Commit 22d98b8

Browse files
committed
correct go path
1 parent 88bd3e5 commit 22d98b8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/quality-checks.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ jobs:
157157
echo "****************"
158158
echo "uses_node=false" >> "$GITHUB_OUTPUT"
159159
fi
160-
if [ -f go.sum ]; then
160+
if [ -f src/go.sum ]; then
161161
echo "****************"
162162
echo "Detected a Go project"
163163
echo "****************"
@@ -168,7 +168,7 @@ jobs:
168168
echo "****************"
169169
echo "uses_go=false" >> "$GITHUB_OUTPUT"
170170
fi
171-
cat <<EOF > trivy.yaml
171+
cat <<EOF >> trivy.yaml
172172
pkg:
173173
include-dev-deps: true
174174
EOF
@@ -203,7 +203,7 @@ jobs:
203203
if: ${{ steps.check_languages.outputs.uses_go == 'true' }}
204204
with:
205205
scan-type: "fs"
206-
scan-ref: "go.sum"
206+
scan-ref: "src/go.sum"
207207
severity: "CRITICAL,HIGH"
208208
scanners: "license"
209209
format: "table"
@@ -298,7 +298,7 @@ jobs:
298298
uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8
299299
with:
300300
scan-type: "fs"
301-
scan-ref: "go.sum"
301+
scan-ref: "src/go.sum"
302302
severity: "CRITICAL,HIGH"
303303
scanners: "vuln"
304304
format: "table"

0 commit comments

Comments
 (0)