Skip to content

Commit

Permalink
Manage workflow permissions for pushing tags (#3)
Browse files Browse the repository at this point in the history
* update permissions

* update token
  • Loading branch information
raspreet-vunet authored Jul 23, 2024
1 parent 7502ef1 commit 7f6b1aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
release_and_publish:
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -42,8 +44,8 @@ jobs:
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v6
Expand Down

0 comments on commit 7f6b1aa

Please sign in to comment.