Skip to content

Commit

Permalink
Add permission fields to fix ghcr 403 error
Browse files Browse the repository at this point in the history
  • Loading branch information
hrz6976 committed Jul 9, 2024
1 parent eecb302 commit 1c521ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
- cron: '0 0 * * MON'
workflow_dispatch:

permissions:
contents: read
packages: write

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -21,7 +25,8 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

logout: false

- name: Log in to DockerHub Registry
uses: docker/login-action@v1
with:
Expand Down

0 comments on commit 1c521ff

Please sign in to comment.