-
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
fcb6e99
commit 6f9c9ae
Showing
1 changed file
with
10 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,13 +77,21 @@ jobs: | |
slsa-layout-file: artifacts-layout.json | ||
predicate-type: https://slsa.dev/provenance/v0.2 | ||
predicate-file: predicate.json | ||
output-folder: toto | ||
output-folder: attestations | ||
- name: Sign the attestation | ||
uses: slsa-framework/slsa-github-generator/.github/actions/[email protected] | ||
with: | ||
payload-type: application/vnd.in-toto+json | ||
attestations: attestations | ||
output-folder: attestations-signed | ||
output-folder: attestations-signed | ||
- run: ls -Rla | ||
- name: Upload to npmjs.com | ||
env: | ||
TARBALL_PATH: ${{ steps.package-details.outputs.PACKAGE_FILENAME }} | ||
PROVENANCE_PATH: "./attestations/${{ needs.build.outputs.provenance-download-name }}/${{ needs.build.outputs.provenance-name }}" | ||
run: | | ||
npm config set //registry.npmjs.org/:_authToken "${{ secrets.NPM_TOKEN }}" | ||
npm publish "${TARBALL_PATH}" --access public --provenance-file="${PROVENANCE_PATH}" | ||
|
||
|