Skip to content

Commit

Permalink
Add permissions to builders workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuru committed Jun 11, 2024
1 parent 7d4f41a commit 277d1ac
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/apkbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ on:
paths:
- apk/**

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

jobs:
build-and-push:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -47,7 +53,7 @@ jobs:
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
- name: Login to Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/debbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ on:
- deb/**
- .github/workflows/debbuild.yml

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

jobs:
build-and-push:
runs-on: ubuntu-latest
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/rpmbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ on:
- rpm/**
- .github/workflows/rpmbuild.yml

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

jobs:
build-and-push:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 277d1ac

Please sign in to comment.