-
-
Notifications
You must be signed in to change notification settings - Fork 860
28 lines (26 loc) · 966 Bytes
/
Copy pathsign-release.yml
File metadata and controls
28 lines (26 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Sign Release
on:
release:
types: [published]
permissions:
contents: read
jobs:
sign:
runs-on: ubuntu-latest
permissions:
contents: write # to attach .sigstore bundles to the release
id-token: write # OIDC for keyless signing
steps:
- uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
with:
egress-policy: audit
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: sigstore/gh-action-sigstore-python@5b79a39c381910c090341a2c9b0bf022c8b387e1 # v3.0.1
with:
inputs: dist/purify.min.js dist/purify.js
# Re-uploads signed artefacts to the release that triggered this run.
# Without this flag, .sigstore bundles are generated but dropped at
# job end - the release page gets nothing.
release-signing-artifacts: true