mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-11-01 00:19:51 +00:00
ci: give every workflow an explicit least-privilege GITHUB_TOKEN (#15)
CodeQL actions/missing-workflow-permissions: lock.yml, pr-any.yml had no permissions block, so their jobs received the repository default token. Read-only where nothing writes through GITHUB_TOKEN; lock-threads gets the issues/pull-requests/discussions write it documents; workflows that write do it with a separate bot or app token, so GITHUB_TOKEN stays read-only.
This commit is contained in:
1 parent
2383159950
commit
9efe61cba9
2 files changed
+12
No files matched your search
@@ -1,6 +1,11 @@
|
||||
name: PR
|
||||
on: [pull_request]
|
||||
|
||||
|
||||
# Read-only token: no step writes through GITHUB_TOKEN.
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
pr:
|
||||
strategy:
|
||||
|
||||
Reference in new issue
Block a user