From 49182af1173f72a1a588475e62ee81073da46e6f Mon Sep 17 00:00:00 2001 From: Jasper van den Bosch Date: Sun, 4 Aug 2024 20:36:12 +0100 Subject: [PATCH] job-wise permissions --- .github/workflows/style.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index 6a99368e..7fc3450e 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -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: @@ -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: