Skip to content

Commit

Permalink
This adds a top-level permissions block to all workflows in wolfi-dev…
Browse files Browse the repository at this point in the history
…/tools (#86)

Signed-off-by: Matt Moore <[email protected]>
  • Loading branch information
mattmoor authored Jan 4, 2024
1 parent 8f7c500 commit ae1ce39
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/add-issues-to-project-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
types:
- opened

permissions: {}

jobs:
add-to-project:
name: Add issue to project
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/presubmit-build.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
on:
pull_request:

permissions:
contents: read # Needed to clone the repo

jobs:
alpine-base:
uses: ./.github/workflows/.build.yaml
Expand All @@ -23,12 +26,12 @@ jobs:
with:
image: melange
melange-config: configs/latest.melange.yaml

musl-dynamic:
uses: ./.github/workflows/.build.yaml
with:
image: musl-dynamic

sdk:
uses: ./.github/workflows/.build.yaml
with:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ on:
concurrency: release

permissions:
id-token: write
packages: write
contents: read
contents: read # Needed to clone the repo
id-token: write # Needed to sign images
packages: write # Needed to publish images to GHCR

jobs:
alpine-base:
Expand Down Expand Up @@ -39,13 +39,13 @@ jobs:
image: melange
melange-config: configs/latest.melange.yaml
registry: ghcr.io/wolfi-dev/melange

musl-dynamic:
uses: ./.github/workflows/.build.yaml
with:
image: musl-dynamic
registry: ghcr.io/wolfi-dev/musl-dynamic

sdk:
uses: ./.github/workflows/.build.yaml
with:
Expand Down

0 comments on commit ae1ce39

Please sign in to comment.