Skip to content

Commit

Permalink
fix: set permissions for packages and docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
i0n committed Nov 21, 2024
1 parent 30de11b commit 66d5a1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
build-linux:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -41,7 +45,7 @@ jobs:
latest:dev
- name: Log in to the Container registry
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/gen-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
build-linux:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v3
- name: Setup Rust
Expand Down

0 comments on commit 66d5a1f

Please sign in to comment.