Skip to content

Commit eab58c6

Browse files
CTO (UnboxAPI)Paperclip-Paperclip
andcommitted
fix(ci): add sha256 checksum verification for binary downloads
gitleaks 8.21.2 and osv-scanner 1.8.5 downloads now verified against official release checksums before execution. SR-1 resolution: addresses Low finding from CTO security review. Co-Authored-By: Paperclip <noreply@paperclip.ing>
1 parent 8028d92 commit eab58c6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ jobs:
3030
- name: Install gitleaks
3131
run: |
3232
GITLEAKS_VERSION=8.21.2
33+
GITLEAKS_SHA256=5bc41815076e6ed6ef8fbecc9d9b75bcae31f39029ceb55da08086315316e3ba
3334
curl -sSfL \
3435
"https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" \
3536
-o /tmp/gitleaks.tar.gz
37+
echo "${GITLEAKS_SHA256} /tmp/gitleaks.tar.gz" | sha256sum -c -
3638
tar -xzf /tmp/gitleaks.tar.gz -C /tmp gitleaks
3739
chmod +x /tmp/gitleaks
3840
- name: Run gitleaks (git history)
@@ -55,9 +57,11 @@ jobs:
5557
- name: Install osv-scanner
5658
run: |
5759
OSV_VERSION=1.8.5
60+
OSV_SHA256=3f241e03861e25dc3f739794ba03ad3dffd68ef2c96c382a45df5fe734b5dc5f
5861
curl -sSfL \
5962
"https://github.com/google/osv-scanner/releases/download/v${OSV_VERSION}/osv-scanner_linux_amd64" \
6063
-o /tmp/osv-scanner
64+
echo "${OSV_SHA256} /tmp/osv-scanner" | sha256sum -c -
6165
chmod +x /tmp/osv-scanner
6266
- name: Run osv-scanner
6367
run: /tmp/osv-scanner scan --recursive .

0 commit comments

Comments
 (0)