Skip to content

Commit

Permalink
job-wise permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperVanDenBosch committed Aug 4, 2024
1 parent a6e2dff commit 49182af
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ on:
pull_request:
types: [opened, synchronize, reopened]

permissions:
contents: read
statuses: write

jobs:

style:
runs-on: ubuntu-22.04
permissions:
contents: read
statuses: write
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -35,8 +34,11 @@ jobs:

typing:
runs-on: ubuntu-22.04
permissions:
contents: read
statuses: write
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit 49182af

Please sign in to comment.