Skip to content

Commit

Permalink
fix: permissions in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
johnson2427 committed May 8, 2024
1 parent 5aaad77 commit 1fdfbbb
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/commitlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
check:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v4
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/draft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
jobs:
update-draft:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
# Drafts your next Release notes as Pull Requests are merged into "main"
- uses: release-drafter/release-drafter@v5
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:

runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v4

Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ jobs:
linting:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v4

Expand All @@ -29,6 +32,9 @@ jobs:
type-check:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v4

Expand All @@ -46,6 +52,9 @@ jobs:
functional:
runs-on: ${{ matrix.os }}

permissions:
contents: write

strategy:
matrix:
# TODO: Replace with macos-latest when works again.
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/title.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
check:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit 1fdfbbb

Please sign in to comment.