Skip to content

Commit c1edc1f

Browse files
committed
fix: add workflow permissions
1 parent b56e574 commit c1edc1f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/cd.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ jobs:
88
docker-hub:
99
name: Push Docker image to Docker Hub
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
1114
steps:
1215
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1316

@@ -27,6 +30,9 @@ jobs:
2730
ghcr-io:
2831
name: Push Docker image to ghcr.io
2932
runs-on: ubuntu-latest
33+
permissions:
34+
contents: read
35+
packages: write
3036

3137
steps:
3238
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

0 commit comments

Comments
 (0)