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

chore(ci): Set token permissions for GitHub Actions workflows #498

Merged
merged 1 commit into from
Dec 2, 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
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