Skip to content

Commit

Permalink
Merge pull request fluent#4581 from kenhys/fix-ci-permission
Browse files Browse the repository at this point in the history
github: set job permissions
  • Loading branch information
ashie authored Aug 7, 2024
2 parents 5e75248 + 3341478 commit 5b9b1f2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/stale-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ on:
schedule:
- cron: "00 10 * * *"

permissions: read-all

jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v8
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-ruby-head.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
- cron: '11 14 * * 0'
workflow_dispatch:

permissions: read-all

jobs:
test:
runs-on: ${{ matrix.os }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
pull_request:
branches: [master]

permissions: read-all

jobs:
test:
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 5b9b1f2

Please sign in to comment.