Skip to content

Commit

Permalink
Merge pull request #3418 from grafana/vldmr/fix-gh-workflow-update-helm
Browse files Browse the repository at this point in the history
update-helm-repo: fix oci image push failure
  • Loading branch information
narqo authored Nov 11, 2024
2 parents dda0112 + 5bf5db8 commit c9f5634
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/update-helm-repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ jobs:
needs: [setup]
runs-on: ubuntu-latest
permissions:
contents: write # to push chart release, create release, and push tags to github
packages: write # to push package to ghcr
packages: write # allows GITHUB_TOKEN to push package to ghcr
env:
github_app_id: ${{ secrets.github_app_id }}
if: needs.setup.outputs.changed == 'true'
Expand Down Expand Up @@ -234,7 +233,9 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ env.AUTHTOKEN }}
# GitHub App installation token cannot push package to the org's package registry;
# using GITHUB_TOKEN here instead to avoid using PAT.
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push charts to GHCR
run: |
Expand Down

0 comments on commit c9f5634

Please sign in to comment.