Skip to content

Commit

Permalink
workflows/release: put sigs and certs in their own directory
Browse files Browse the repository at this point in the history
To avoid confusing twine.

Signed-off-by: William Woodruff <[email protected]>
  • Loading branch information
woodruffw committed Jun 4, 2022
1 parent 0a80d42 commit 4d0c9f1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,29 @@ jobs:

- name: sign
run: |
mkdir -p smoketest-artifacts
# we smoke-test sigstore by installing each of the distributions
# we've built in a fresh environment and using each to sign and
# verify for itself, using the ambient OIDC identity
for dist in dist/*; do
dist_base="$(basename "${dist}")"
python -m venv smoketest-env
./smoketest-env/bin/python -m pip install "${dist}"
./smoketest-env/bin/python -m \
sigstore sign "${dist}" --output-signature --output-certificate
sigstore sign "${dist}" \
--output-signature smoketest-artifacts/"${dist_base}.sig" \
--output-certificate smoketest-artifacts/"${dist_base}.crt"
./smoketest-env/bin/python -m \
sigstore verify "${dist}" \
--cert "${dist}.crt" --signature "${dist}.sig" \
--cert "smoketest-artifacts/${dist_base}.crt" \
--signature "smoketest-artifacts/${dist_base}.sig" \
--cert-oidc-issuer https://token.actions.githubusercontent.com \
rm -rf smoketest-env
done
Expand Down

0 comments on commit 4d0c9f1

Please sign in to comment.