1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-05 07:26:55 +00:00

Fix permissions for image publish workflows (#3021)

All of the jobs in this workflow use the same set of permissions and this workflow is only run on pushes to master. Adding the appropriate permissions to read repository contents, publish packages and ID token for cosign.

Signed-off-by: Sambhav Kothari <sambhavs.email@gmail.com>
This commit is contained in:
Sambhav Kothari 2022-01-19 11:39:51 +00:00 committed by GitHub
parent f0359f8272
commit 8ddfcacd79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,10 @@ on:
branches:
- 'main'
permissions: read-all
permissions:
contents: read
packages: write
id-token: write
jobs:
push-init-kyverno: