Skip to content

Commit 2e59b63

Browse files
authored
Set the required permissions properly.
1 parent 67e2d51 commit 2e59b63

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/publish_container.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
# https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#upgrading-a-workflow-that-accesses-ghcrio
22
name: Create and publish a Docker image
33

4-
permissions:
5-
id-token: write
6-
contents: write
7-
packages: write
8-
94
# Configures this workflow to run every time a change is pushed to the branch called `release`.
105
on:
116
push:
@@ -23,7 +18,8 @@ jobs:
2318
runs-on: ubuntu-latest
2419
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
2520
permissions:
26-
contents: read
21+
id-token: write
22+
contents: write
2723
packages: write
2824
steps:
2925
- name: Checkout repository

0 commit comments

Comments
 (0)