Skip to content

Commit caa7187

Browse files
committed
ci(release): install cosign for release smoke
Signed-off-by: JSONbored <49853598+JSONbored@users.noreply.github.com>
1 parent 10df243 commit caa7187

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ jobs:
209209
with:
210210
persist-credentials: false
211211

212+
- name: Install Cosign
213+
uses: sigstore/cosign-installer@cad07c2e89fa2edd6e2d7bab4c1aa38e53f76003 # v4.1.1
214+
212215
- name: Smoke published GitHub release artifacts
213216
env:
214217
GH_TOKEN: ${{ github.token }}

scripts/test-release-scripts.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ grep -q "x86_64-apple-darwin" "${repo_root}/.github/workflows/release.yml"
3333
grep -q 'NIGHTWARD_VERSION="${version}"' "${repo_root}/.github/workflows/release.yml"
3434
grep -q "dist/nightward_\\*.tar.gz" "${repo_root}/.github/workflows/release.yml"
3535
grep -q "dist/nightward_\\*.zip" "${repo_root}/.github/workflows/release.yml"
36+
if [[ "$(grep -c "sigstore/cosign-installer" "${repo_root}/.github/workflows/release.yml")" -lt 2 ]]; then
37+
echo "expected release publish and smoke jobs to install cosign" >&2
38+
exit 1
39+
fi
3640
if grep -q "path: dist/nightward_\\*" "${repo_root}/.github/workflows/release.yml"; then
3741
echo "expected release upload to exclude staging directories" >&2
3842
exit 1

0 commit comments

Comments
 (0)