[CI] Minimal GitHub Actions permissions (#7165)

* add permission block

* add permissions block

* add permission block

* add permissions block

* switch order
This commit is contained in:
tooomm
2026-08-23 11:42:47 +02:00
committed by GitHub
parent da924c2bd6
commit 63a970045a
5 changed files with 15 additions and 1 deletions

View File

@@ -9,8 +9,8 @@
name: CodeQL
permissions:
security-events: write # needed to post results
contents: read
security-events: write # needed to post results
on:
push:

View File

@@ -1,5 +1,8 @@
name: Code Style (C++)
permissions:
contents: read
on:
# Push trigger not needed for linting, we do not allow direct pushes to master
pull_request:

View File

@@ -1,5 +1,8 @@
name: Generate Docs
permissions:
contents: read # write permission to the destination repo come from 'deploy_key'
on:
pull_request:
paths:

View File

@@ -1,5 +1,9 @@
name: Update Translations
permissions:
contents: read
pull-requests: write
on:
pull_request:
paths:

View File

@@ -1,5 +1,9 @@
name: Update Translation Source
permissions:
contents: read
pull-requests: write
on:
pull_request:
paths: