forked from mirrors/probot
feat(security): Configure provenance (#1997)
This adds a cryptographic signature to NPM uploads to show that a upload was done by GitHub actions and not somewhere else. Such a feature should help detect malicious uploads to NPM. This feature could be extended to other repositories too.
This commit is contained in:
parent
8e9dd47e69
commit
3f2032077b
|
@ -6,6 +6,14 @@ on:
|
|||
- next
|
||||
- beta
|
||||
- "*.x"
|
||||
|
||||
# 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:
|
||||
release:
|
||||
name: release
|
||||
|
|
|
@ -111,5 +111,8 @@
|
|||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"publishConfig": {
|
||||
"provenance": true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue