github: Move permissions to the individual jobs

SonarQube complains about workflow-level "allow" permissions.
This commit is contained in:
Tobias Brunner
2026-05-27 13:31:51 +02:00
parent 5a2ed87945
commit 6f99862da8
7 changed files with 22 additions and 21 deletions
+2 -3
View File
@@ -2,12 +2,11 @@ name: Cache cleanup
on: delete
permissions:
actions: write
jobs:
cleanup:
runs-on: ubuntu-slim
permissions:
actions: write
steps:
- env:
GH_TOKEN: ${{ github.token }}