Skip to content

Commit

Permalink
feat(security): Add provenance (#916)
Browse files Browse the repository at this point in the history
* Enable provenance in package.json

* Add necessary permissions to the release workflow

* Adapt PR

---------

Co-authored-by: wolfy1339 <webmaster@wolfy1339.com>
  • Loading branch information
AaronDewes and wolfy1339 committed Apr 3, 2024
1 parent 897531e commit b28ee22
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Expand Up @@ -4,6 +4,13 @@
- main
- beta
name: Release
# These are recommended by the semantic-release docs: https://github.com/semantic-release/npm#npm-provenance
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance

jobs:
build:
name: release
Expand Down
3 changes: 0 additions & 3 deletions package.json
Expand Up @@ -91,8 +91,5 @@
"turndown": "^7.1.1",
"typescript": "^5.0.0",
"yargs": "^17.3.1"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 2 additions & 1 deletion payload-examples/package.json
Expand Up @@ -18,6 +18,7 @@
},
"devDependencies": {},
"publishConfig": {
"access": "public"
"access": "public",
"provenance": true
}
}
3 changes: 2 additions & 1 deletion payload-schemas/package.json
Expand Up @@ -14,6 +14,7 @@
"dependencies": {},
"devDependencies": {},
"publishConfig": {
"access": "public"
"access": "public",
"provenance": true
}
}
3 changes: 2 additions & 1 deletion payload-types/package.json
Expand Up @@ -15,6 +15,7 @@
"dependencies": {},
"devDependencies": {},
"publishConfig": {
"access": "public"
"access": "public",
"provenance": true
}
}

0 comments on commit b28ee22

Please sign in to comment.