@@ -2,52 +2,39 @@ name: Sign Release Artifacts
22
33on :
44 release :
5- types : [published] # Trigger only when a new release is *created*
5+ types : [published]
66
77permissions :
8- contents : write # Needed to upload release assets
9- id-token : write # Needed for OIDC authentication with Sigstore
8+ contents : write
9+ id-token : write
1010
1111jobs :
1212 sign :
1313 runs-on : ubuntu-latest
1414 steps :
1515 - uses : actions/checkout@v4
1616 with :
17- persist-credentials : false # Avoid keeping credentials around longer than needed
17+ persist-credentials : false
1818
19- - name : Set up Python # This step is CRUCIAL
19+ - name : Set up Python
2020 uses : actions/setup-python@v4
2121 with :
22- python-version : ' 3.10' # Or another supported version, matching your project
22+ python-version : ' 3.10'
2323
2424 - name : Install dependencies (including your package in editable mode)
2525 run : |
2626 python -m pip install --upgrade pip
27- pip install -e . # Install your package (so it's available to the signing action)
27+ pip install -e .
2828
2929 - name : Sign Script with Sigstore
30303131 with :
32- inputs : feldman_vss.py
33- README.md
34- LICENSE
35- # Optional: Sign other files too, e.g., a README or LICENSE
36- # inputs: |
37- # feldman_vss.py
38- # README.md
39- # LICENSE
40- release-signing-artifacts : true # Upload signatures as release assets
41- upload-signing-artifacts : true # Also upload as workflow artifacts (for debugging)
42-
43- # Optional: Verify the signature (good practice)
32+ inputs : feldman_vss.py README.md LICENSE pyproject.toml
33+ release-signing-artifacts : true
34+ upload-signing-artifacts : true
4435 - name : Verify Signature
45- if : always() # Run verification even if signing fails (for diagnostics)
36+ if : always()
46374738 with :
48- inputs : feldman_vss_current .py
39+ inputs : feldman_vss .py README.md LICENSE pyproject.toml
4940 verify : true
50- # We know the identity because it will be the GitHub Actions bot.
51- # The format is {actor}@users.noreply.github.com
52- verify-cert-identity : ${{ github.actor }}@users.noreply.github.com
53- verify-oidc-issuer : https://token.actions.githubusercontent.com
0 commit comments