Skip to content

Commit

Permalink
set to sha512
Browse files Browse the repository at this point in the history
  • Loading branch information
AEnguerrand committed Dec 2, 2024
1 parent 54203cd commit 4cfe07d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/sigtstorejs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ jobs:
- name: Generate dummy package
run: npm pack
- name: Generate provenance statement with package as attestation subject
run: npx @npmcli/provenance-cli generate aenguerrand-examplepackage12-0.4.0.tgz -o provenance-statement.json --subject-name="pkg:npm/%40aenguerrand/[email protected]"
run: |
sha512=$(shasum -a 512 aenguerrand-examplepackage12-0.4.0.tgz | awk '{print $1}')
npx @npmcli/provenance-cli generate aenguerrand-examplepackage12-0.4.0.tgz -o provenance-statement.json --subject-name="pkg:npm/%40aenguerrand/[email protected]" --subject-digest="$sha512"
- name: Sign provenance statement
run: npx @sigstore/cli attest ./provenance-statement.json -o provenance.sigstore.json
- name: "Verify provenance statement (TODO: Verify source identity)"
Expand Down

0 comments on commit 4cfe07d

Please sign in to comment.