Skip to content

Commit 1496789

Browse files
haasonsaasclaude
andcommitted
fix(ci): use Trivy's official install script instead of fragile wget pipe
The previous wget-to-tar pipe silently produced corrupt archives on network hiccups. The official install script handles retries and checksum verification. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4b8651a commit 1496789

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

.github/workflows/security.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ jobs:
2424
run: go install golang.org/x/vuln/cmd/govulncheck@latest
2525

2626
- name: Install Trivy
27-
run: |
28-
sudo apt-get update
29-
sudo apt-get install -y wget
30-
sudo wget -qO- https://github.com/aquasecurity/trivy/releases/latest/download/trivy_Linux-64bit.tar.gz | tar -xz --strip-components=1 -C /usr/local/bin trivy
27+
run: curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b /usr/local/bin
3128

3229
- name: Run security scan script
3330
run: ./scripts/security-scan.sh

0 commit comments

Comments
 (0)