mirror of
https://github.com/pezkuwichain/pezkuwi-dev.git
synced 2026-10-22 11:46:18 +00:00
ci: give every workflow an explicit least-privilege GITHUB_TOKEN (#23)
CodeQL actions/missing-workflow-permissions: auto-approve.yml, auto-merge.yml, lock.yml, pr-any.yml, push-master.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
ef5d2fbff5
commit
de9f5a8604
5 files changed
+27
No files matched your search
@@ -4,6 +4,13 @@ on:
|
||||
schedule:
|
||||
- cron: '30 1/3 * * *'
|
||||
|
||||
|
||||
# dessant/lock-threads locks closed issues, PRs and discussions.
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
discussions: write
|
||||
|
||||
jobs:
|
||||
lock:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in new issue
Block a user