-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54203cd
commit 4cfe07d
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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)" | ||
|