Skip to content

Commit 6af1b3f

Browse files
committed
fix: correct Gosec repository path in GitHub Actions
- Change from github.com/securecodewarrior/gosec to github.com/securego/gosec - Repository path was causing module not found errors in CI - Verified installation works locally with correct path
1 parent 0a25433 commit 6af1b3f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,12 @@ jobs:
8989
run: |
9090
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
9191
92-
- name: Install Gosec
92+
- name: Install and Run Gosec
9393
run: |
94-
go install github.com/securecodewarrior/gosec/v2/cmd/gosec@latest
95-
96-
- name: Run Gosec Security Scanner
97-
run: |
98-
gosec -fmt sarif -out gosec.sarif ./...
94+
# Install gosec from the official repository
95+
go install github.com/securego/gosec/v2/cmd/gosec@latest
96+
# Run gosec with continue on error
97+
gosec -fmt sarif -out gosec.sarif ./... || echo "Gosec found security issues"
9998
continue-on-error: true
10099

101100
- name: Upload SARIF file

0 commit comments

Comments
 (0)