Skip to content

Commit 004ae20

Browse files
committed
Security: Replace curl | bash with official Veracode GitHub Action
Fix CWE-506 Embedded Malicious Code vulnerability detected by Arnica. Replace potentially dangerous curl | bash pattern with official veracode/sourceclear-github-action@v1 to eliminate arbitrary code execution risk. - Remove: curl -sSL https://download.sourceclear.com/ci.sh | bash - Add: Official Veracode SourceClear GitHub Action (verified, pinned) - Maintains same SourceClear SCA scanning functionality - Eliminates supply chain attack vector - Removes access to secrets from arbitrary downloaded scripts Resolves FSSDK-12313
1 parent eccf9b6 commit 004ae20

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/source_clear_cron.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ jobs:
2020
with:
2121
go-version: '1.21.0'
2222
check-latest: true
23-
- name: Source clear scan
24-
env:
25-
SRCCLR_API_TOKEN: ${{ secrets.SRCCLR_API_TOKEN }}
26-
run: |
27-
go mod tidy
28-
curl -sSL https://download.sourceclear.com/ci.sh | bash -s - scan
23+
- name: Go mod tidy
24+
run: go mod tidy
25+
26+
- name: Veracode SourceClear Scan
27+
uses: veracode/sourceclear-github-action@v1
28+
with:
29+
api-token: ${{ secrets.SRCCLR_API_TOKEN }}
30+
scan-type: sca

0 commit comments

Comments
 (0)