mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-14 11:57:59 +00:00
fix: restrict the token permission update to the push chart step (#4128)
This commit is contained in:
parent
44e462f510
commit
dc7c2ab443
1 changed files with 5 additions and 4 deletions
5
.github/workflows/helm.yml
vendored
5
.github/workflows/helm.yml
vendored
|
@ -71,8 +71,6 @@ jobs:
|
|||
permissions:
|
||||
contents: write # for helm/chart-releaser-action to push chart release and create a release
|
||||
packages: write # to push OCI chart package to GitHub Registry
|
||||
id-token: write # gives the action the ability to mint the OIDC token necessary to request a Sigstore signing certificate
|
||||
attestations: write # this permission is necessary to persist the attestation
|
||||
runs-on: ubuntu-latest
|
||||
if: |
|
||||
github.ref == 'refs/heads/main' ||
|
||||
|
@ -130,6 +128,9 @@ jobs:
|
|||
cosign-release: 'v2.4.1'
|
||||
|
||||
- name: Push chart to GHCR
|
||||
permissions:
|
||||
id-token: write # gives the action the ability to mint the OIDC token necessary to request a Sigstore signing certificate
|
||||
attestations: write # this permission is necessary to persist the attestation
|
||||
id: push_chart
|
||||
run: |
|
||||
shopt -s nullglob
|
||||
|
|
Loading…
Reference in a new issue