Skip to content

Commit 6139ae1

Browse files
committed
fix: update provenance builder.id and buildType
Signed-off-by: Brian DeHamer <bdehamer@github.com>
1 parent e9fd593 commit 6139ae1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

workspaces/libnpmpublish/lib/provenance.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ const INTOTO_PAYLOAD_TYPE = 'application/vnd.in-toto+json'
44
const INTOTO_STATEMENT_TYPE = 'https://in-toto.io/Statement/v0.1'
55
const SLSA_PREDICATE_TYPE = 'https://slsa.dev/provenance/v0.2'
66

7-
const BUILDER_ID_PREFIX = 'https://github.com/npm/cli'
7+
const BUILDER_ID = 'https://github.com/actions/runner'
88
const BUILD_TYPE_PREFIX = 'https://github.com/npm/cli/gha'
9-
const BUILD_TYPE_VERSION = 'v1'
9+
const BUILD_TYPE_VERSION = 'v2'
1010

1111
const generateProvenance = async (subject, opts) => {
1212
const { env } = process
@@ -18,8 +18,8 @@ const generateProvenance = async (subject, opts) => {
1818
subject,
1919
predicateType: SLSA_PREDICATE_TYPE,
2020
predicate: {
21-
buildType: `${BUILD_TYPE_PREFIX}@${BUILD_TYPE_VERSION}`,
22-
builder: { id: `${BUILDER_ID_PREFIX}@${opts.npmVersion}` },
21+
buildType: `${BUILD_TYPE_PREFIX}/${BUILD_TYPE_VERSION}`,
22+
builder: { id: BUILDER_ID },
2323
invocation: {
2424
configSource: {
2525
uri: `git+${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}@${env.GITHUB_REF}`,

0 commit comments

Comments
 (0)