ci(workflows): set token permissions on every workflow (#29489)

Eleven workflows had no top-level permissions block, so any job without
its own ran with the repository's default token permissions. Set the
least each one needs: read-only contents for the build, test and
Crowdin upload workflows, which only check out code and use their own
tokens for anything else; issues, pull requests and the Actions cache
for the stale bot. Workflows whose jobs already set permissions get a
read-only default for any job added later.

This clears the actions/missing-workflow-permissions code scanning
alerts.

Assisted-by: Claude:claude-opus-5-5

Signed-off-by: Julian Oes <julian@oes.ch>
(cherry picked from commit ddc63c57e8)
This commit is contained in:
Julian Oes committed 2026-10-30 15:17:00 +01:00
1 parent 68e844c46b
commit bc690bbb5c
11 files changed
+35

No files matched your search

+3
View File
@@ -32,6 +32,9 @@ on:
type: boolean
default: false
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true