Skip to content

Commit 53ad975

Browse files
AaronDeweswolfy1339
andauthoredApr 3, 2024··
feat(security): Add provenance (#92)
* Enable provenance in package.json * Add necessary permissions to the release workflow * Adapt scripts --------- Co-authored-by: wolfy1339 <webmaster@wolfy1339.com>
1 parent 817b0fe commit 53ad975

File tree

12 files changed

+27
-9
lines changed

12 files changed

+27
-9
lines changed
 

‎.github/workflows/release.yml

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ name: Release
66
- next
77
- beta
88
- "*.x"
9+
# These are recommended by the semantic-release docs: https://github.com/semantic-release/npm#npm-provenance
10+
permissions:
11+
contents: write # to be able to publish a GitHub release
12+
issues: write # to be able to comment on released issues
13+
pull-requests: write # to be able to comment on released pull requests
14+
id-token: write # to enable use of OIDC for npm provenance
15+
916
jobs:
1017
release:
1118
name: release

‎packages/openapi-webhooks-types-ghec/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"directory": "packages/openapi-webhooks-types-ghec"
88
},
99
"publishConfig": {
10-
"access": "public"
10+
"access": "public",
11+
"provenance": true
1112
},
1213
"version": "0.0.0-development",
1314
"main": "",

‎packages/openapi-webhooks-types-ghes-3.10/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"directory": "packages/openapi-webhooks-types-ghes-3.10"
88
},
99
"publishConfig": {
10-
"access": "public"
10+
"access": "public",
11+
"provenance": true
1112
},
1213
"version": "0.0.0-development",
1314
"main": "",

‎packages/openapi-webhooks-types-ghes-3.11/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"directory": "packages/openapi-webhooks-types-ghes-3.11"
88
},
99
"publishConfig": {
10-
"access": "public"
10+
"access": "public",
11+
"provenance": true
1112
},
1213
"version": "0.0.0-development",
1314
"main": "",

‎packages/openapi-webhooks-types-ghes-3.12/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"directory": "packages/openapi-webhooks-types-ghes-3.12"
88
},
99
"publishConfig": {
10-
"access": "public"
10+
"access": "public",
11+
"provenance": true
1112
},
1213
"version": "0.0.0-development",
1314
"main": "",

‎packages/openapi-webhooks-types-ghes-3.8/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"directory": "packages/openapi-webhooks-types-ghes-3.8"
88
},
99
"publishConfig": {
10-
"access": "public"
10+
"access": "public",
11+
"provenance": true
1112
},
1213
"version": "0.0.0-development",
1314
"main": "",

‎packages/openapi-webhooks-types-ghes-3.9/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"directory": "packages/openapi-webhooks-types-ghes-3.9"
88
},
99
"publishConfig": {
10-
"access": "public"
10+
"access": "public",
11+
"provenance": true
1112
},
1213
"version": "0.0.0-development",
1314
"main": "",

‎packages/openapi-webhooks-types-github.ae/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"directory": "packages/openapi-webhooks-types-github.ae"
88
},
99
"publishConfig": {
10-
"access": "public"
10+
"access": "public",
11+
"provenance": true
1112
},
1213
"version": "0.0.0-development",
1314
"main": "",

‎packages/openapi-webhooks-types/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"directory": "packages/openapi-webhooks-types"
88
},
99
"publishConfig": {
10-
"access": "public"
10+
"access": "public",
11+
"provenance": true
1112
},
1213
"version": "0.0.0-development",
1314
"main": "",

‎packages/openapi-webhooks/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"author": "wolfy1339 <webmaster@wolfy1339.com>",
2323
"license": "MIT",
2424
"publishConfig": {
25-
"access": "public"
25+
"access": "public",
26+
"provenance": true
2627
}
2728
}

‎scripts/build.js

+1
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ They are all generated, your changes would be overwritten with the next update.
181181
license: "MIT",
182182
publishConfig: {
183183
access: "public",
184+
provenance: true,
184185
},
185186
}),
186187
{ parser: "json-stringify" },

‎scripts/generate-types.js

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ run();
1313
const packageDefaults = {
1414
publishConfig: {
1515
access: "public",
16+
provenance: true,
1617
},
1718
version: "0.0.0-development",
1819
main: "",

0 commit comments

Comments
 (0)
Please sign in to comment.