Skip to content

Commit e0d207e

Browse files
committed
ci(qa): add least-privilege permissions block (contents: read)
Silences CodeQL actions/missing-workflow-permissions. The QA gate only reads the tree (checkout + host scripts), so an explicit read-only token is correct and defends in depth even if the repo default token scope changes. Assisted-by: AI
1 parent 1356a86 commit e0d207e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/qa.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
pull_request:
1010
branches: [main, dev]
1111

12+
# Least privilege: this gate only reads the tree (checkout + host scripts), never writes.
13+
permissions:
14+
contents: read
15+
1216
jobs:
1317
host-qa:
1418
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)