Skip to content

Commit

Permalink
Set the required permissions properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
phillmv authored Jan 2, 2024
1 parent 67e2d51 commit 2e59b63
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/publish_container.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# 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
name: Create and publish a Docker image

permissions:
id-token: write
contents: write
packages: write

# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
push:
Expand All @@ -23,7 +18,8 @@ jobs:
runs-on: ubuntu-latest
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
contents: read
id-token: write
contents: write
packages: write
steps:
- name: Checkout repository
Expand Down

0 comments on commit 2e59b63

Please sign in to comment.