-
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
b3127d1
commit c67dc17
Showing
4 changed files
with
15 additions
and
15 deletions.
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
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
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,7 @@ 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.2.0.tgz -o provenance-statement.json --subject-name="pkg:npm/%40aenguerrand/examplepackage12@0.2.0" | ||
run: npx @npmcli/provenance-cli generate aenguerrand-examplepackage12-0.3.0.tgz -o provenance-statement.json --subject-name="pkg:npm/%40aenguerrand/examplepackage12@0.3.0" | ||
- name: Sign provenance statement | ||
run: npx @sigstore/cli attest ./provenance-statement.json -o provenance.sigstore.json | ||
- name: "Verify provenance statement (TODO: Verify source identity)" | ||
|
@@ -33,8 +33,8 @@ jobs: | |
- name: Upload artifact (build) | ||
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3 | ||
with: | ||
name: aenguerrand-examplepackage12-0.2.0.tgz | ||
path: aenguerrand-examplepackage12-0.2.0.tgz | ||
name: aenguerrand-examplepackage12-0.3.0.tgz | ||
path: aenguerrand-examplepackage12-0.3.0.tgz | ||
- name: Install Cosign | ||
uses: sigstore/[email protected] | ||
- name: debug | ||
|
@@ -44,4 +44,4 @@ jobs: | |
- name: Upload to npmjs.com | ||
run: | | ||
npm config set //registry.npmjs.org/:_authToken "${{ secrets.NPM_TOKEN }}" | ||
npm publish aenguerrand-examplepackage12-0.2.0.tgz --access public --provenance-file provenance.sigstore.json --access public | ||
npm publish aenguerrand-examplepackage12-0.3.0.tgz --access public --provenance-file provenance.sigstore.json --access public |
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