Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This adds a top-level permissions block to all workflows in wolfi-dev/tools #86

Merged
merged 1 commit into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading