File tree 1 file changed +4
-4
lines changed
workspaces/libnpmpublish/lib
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ const INTOTO_PAYLOAD_TYPE = 'application/vnd.in-toto+json'
4
4
const INTOTO_STATEMENT_TYPE = 'https://in-toto.io/Statement/v0.1'
5
5
const SLSA_PREDICATE_TYPE = 'https://slsa.dev/provenance/v0.2'
6
6
7
- const BUILDER_ID_PREFIX = 'https://github.com/npm/cli '
7
+ const BUILDER_ID = 'https://github.com/actions/runner '
8
8
const BUILD_TYPE_PREFIX = 'https://github.com/npm/cli/gha'
9
- const BUILD_TYPE_VERSION = 'v1 '
9
+ const BUILD_TYPE_VERSION = 'v2 '
10
10
11
11
const generateProvenance = async ( subject , opts ) => {
12
12
const { env } = process
@@ -18,8 +18,8 @@ const generateProvenance = async (subject, opts) => {
18
18
subject,
19
19
predicateType : SLSA_PREDICATE_TYPE ,
20
20
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 } ,
23
23
invocation : {
24
24
configSource : {
25
25
uri : `git+${ env . GITHUB_SERVER_URL } /${ env . GITHUB_REPOSITORY } @${ env . GITHUB_REF } ` ,
You can’t perform that action at this time.
0 commit comments