Commit cd4a4a6
committed
ci: declare contents:read on slack-alert workflow
slack-alert runs on workflow_run, which executes with the elevated
default-branch context (not the read-only pull_request context). The
job only posts to a Slack webhook via SLACK_WEBHOOK_URL; it never
calls the GitHub API. Pinning the workflow to contents:read makes the
minimum-scope contract explicit, matching release.yml and website.yml
which already declare permissions blocks.
tests.yml uses actions/cache and is therefore left for a separate
change to avoid muddling the cache-write semantics here.
Signed-off-by: Arpit Jain <arpitjain099@gmail.com>1 parent 4e16a51 commit cd4a4a6
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
0 commit comments