Commit e67d665
committed
@
ci(nix): least-privilege the two nix workflows, symmetric path filters
Review follow-ups, all three mechanical:
- nix-check.yml declares `permissions: contents: read` instead of inheriting
it. It was the only workflow in .github/workflows/ without a permissions
block, and inheriting a repo-level setting is precisely what broke the bump
workflow it ships alongside.
- The push trigger now watches .github/workflows/nix-check.yml like the
pull_request trigger already did, so an edit to the check itself is checked
on both legs.
- bump-nix-package.yml drops `pull-requests: write`. The PR is opened with the
PAT now, so that grant on GITHUB_TOKEN buys nothing.
@1 parent 4a4ec2f commit e67d665
2 files changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | | - | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
32 | 39 | | |
33 | 40 | | |
34 | 41 | | |
| |||
0 commit comments