Skip to content

Commit 0c61240

Browse files
fix(review): address PR #319 review feedback
- setup-cloudsmith-binary: verify the .sha256 checksum before extracting the archive onto PATH, so a corrupted/unexpected artifact is never executed (the .sha256 is already downloaded alongside the archive). - release.yml: document at the binaries call site that publishing is OIDC-only and the API key secret is required solely for the read-only online smoketest (fail-fast when online_smoketest is requested); the OIDC online path is covered by the binaries `oidc` job. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 0953da9 commit 0c61240

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/actions/setup-cloudsmith-binary/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ runs:
2323
set -euo pipefail
2424
ARCHIVE="binaries/cloudsmith-${VERSION}-linux-x86_64-gnu.tar.gz"
2525
test -f "${ARCHIVE}"
26+
# Verify the accompanying checksum before extracting onto PATH so a
27+
# corrupted or unexpected artifact never gets executed.
28+
test -f "${ARCHIVE}.sha256"
29+
( cd binaries && sha256sum -c "$(basename "${ARCHIVE}").sha256" )
2630
DEST="${RUNNER_TEMP}/cloudsmith-cli"
2731
mkdir -p "${DEST}"
2832
tar -xzf "${ARCHIVE}" -C "${DEST}"

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ jobs:
3838
name: Binaries
3939
needs: validate
4040
uses: ./.github/workflows/binaries.yml
41+
# Publishing authenticates via OIDC (no API key). The online smoketest is a
42+
# separate read-only check that does still need CLOUDSMITH_API_KEY: with
43+
# online_smoketest: true the reusable workflow fails fast if it is missing.
44+
# The OIDC online path is covered separately by the binaries `oidc` job.
4145
with:
4246
online_smoketest: true
4347
permissions:

0 commit comments

Comments
 (0)