Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

Commit 0b758cf

Browse files
committed
Add GitHub permissions to packages:write
1 parent abb9057 commit 0b758cf

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ on:
99
- "src/**"
1010
workflow_dispatch:
1111

12+
permissions:
13+
packages: write
14+
15+
env:
16+
REGISTRY: ghcr.io
17+
1218
jobs:
1319
build:
1420
runs-on: ubuntu-latest
@@ -20,12 +26,12 @@ jobs:
2026
with:
2127
username: ${{ github.repository_owner }}
2228
password: ${{ secrets.GITHUB_TOKEN }}
23-
registry: ghcr.io
29+
registry: ${{ env.REGISTRY }}
2430
- name: Set metadata
2531
id: meta
2632
uses: docker/metadata-action@v4
2733
with:
28-
images: ghcr.io/${{ github.repository_owner }}/github-workflows-monitoring
34+
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/github-workflows-monitoring
2935
flavor: |
3036
latest=true
3137
tags: |

0 commit comments

Comments
 (0)