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
@@ -6,9 +6,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
actions: write
env:
CCACHE_BASEDIR: ${{ github.workspace }}
CCACHE_COMPRESS: true
@@ -32,6 +29,8 @@ jobs:
needs: pre-check
if: ${{ needs.pre-check.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
permissions:
actions: write
env:
TEST: android
# since the NDK might be newly installed, we have to use this to avoid cache misses