Skip to content

Commit e2c48b4

Browse files
authored
ci: Give workflow permissions to write to ghcr.io (#88)
1 parent 7964c37 commit e2c48b4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/docker-release.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: Build and push docker image
2-
32
on:
43
workflow_dispatch:
54
push:
@@ -11,6 +10,9 @@ env:
1110

1211
jobs:
1312
build:
13+
permissions:
14+
contents: read
15+
packages: write
1416
strategy:
1517
matrix:
1618
platform:
@@ -62,6 +64,9 @@ jobs:
6264
retention-days: 1
6365

6466
publish-merged-manifest:
67+
permissions:
68+
contents: read
69+
packages: write
6570
if: github.ref == 'refs/heads/main'
6671
runs-on: ubuntu-24.04
6772
needs:

0 commit comments

Comments
 (0)