ci: give the test, perf guard and branch image workflows a read-only token

This commit is contained in:
Linus Rath
2026-10-19 01:32:26 +02:00
parent 25e0c5676b
commit 545faea1fa
3 changed files with 14 additions and 0 deletions
+4
View File
@@ -21,6 +21,10 @@ on:
- ".github/workflows/docker-publish.yml"
workflow_dispatch:
# Jobs that need more (the registry push, the attestation) say so themselves.
permissions:
contents: read
jobs:
prepare:
name: Prepare
+5
View File
@@ -9,6 +9,11 @@ on:
push:
pull_request:
# The job builds and runs the checked-out code; a compromised step must not
# hold a token that can write to the repository.
permissions:
contents: read
jobs:
perf-guard:
name: Perf guard
+5
View File
@@ -4,6 +4,11 @@ on:
push:
pull_request:
# The job builds and runs the checked-out code; a compromised step must not
# hold a token that can write to the repository.
permissions:
contents: read
jobs:
vitest:
name: Vitest