Skip to content

Commit

Permalink
chore(ci): Set token permissions for GitHub Actions workflows (#498)
Browse files Browse the repository at this point in the history
Signed-off-by: Joonas Bergius <[email protected]>
  • Loading branch information
joonas authored Dec 2, 2024
1 parent eb6fce9 commit 21feab0
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
- 'charts/**'
- '.github/workflows/chart.yml'

permissions:
contents: read

jobs:
validate:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -72,6 +75,7 @@ jobs:
runs-on: ubuntu-22.04
needs: validate
permissions:
contents: read
packages: write

steps:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:
test:
name: e2e
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- 'client-v*'
workflow_dispatch: # Allow manual creation of artifacts without a release

permissions:
contents: read

defaults:
run:
shell: bash
Expand Down Expand Up @@ -107,6 +110,8 @@ jobs:
name: publish release assets
runs-on: ubuntu-latest
needs: build
permissions:
contents: write
env:
RELEASE_VERSION: ${{ needs.build.outputs.version_output }}
steps:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:
test:
name: Test
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/wit-wadm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ on:
tags:
- 'wit-wasmcloud-wadm-v*'

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 21feab0

Please sign in to comment.