|
|
@@ -69,7 +69,10 @@ jobs:
|
|
|
|
|
|
release:
|
|
|
permissions:
|
|
|
- contents: read
|
|
|
+ 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' ||
|
|
|
@@ -96,9 +99,6 @@ jobs:
|
|
|
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --dearmor --output keyring.gpg
|
|
|
echo -n "${{ secrets.GPG_PASSPHRASE }}" > passphrase-file.txt
|
|
|
- name: Run chart-releaser
|
|
|
- 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
|
|
|
uses: helm/chart-releaser-action@a917fd15b20e8b64b94d9158ad54cd6345335584 # v1.6.0
|
|
|
env:
|
|
|
CR_KEY: external-secrets <external-secrets@external-secrets.io>
|
|
|
@@ -130,9 +130,6 @@ 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
|
|
|
@@ -160,9 +157,6 @@ jobs:
|
|
|
done
|
|
|
|
|
|
- name: Generate provenance attestation and push to OCI registry
|
|
|
- permissions:
|
|
|
- attestation: write
|
|
|
- packages: write
|
|
|
uses: actions/attest-build-provenance@ef244123eb79f2f7a7e75d99086184180e6d0018 # v1.4.4
|
|
|
with:
|
|
|
push-to-registry: true
|