Skip to content

Commit 08adf51

Browse files
Avoid executing downloaded artifacts directly
1 parent 2345500 commit 08adf51

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/sbom.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,11 @@ jobs:
7676

7777
- name: Install Grype
7878
run: |
79-
#curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b /usr/local/bin
8079
# Step 1: Download
81-
curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh -o install-grype.sh
80+
curl --proto '=https' --tlsv1.2 --retry 3 --fail -sSL \
81+
https://raw.githubusercontent.com/anchore/grype/main/install.sh \
82+
-o install-grype.sh
83+
8284
8385
# Step 2: Verify (signature / checksum ideally)
8486
chmod +x install-grype.sh

0 commit comments

Comments
 (0)