Repository navigation
Commit 7776387
perf(ci): apply PR token hardening to linux pin step
The Linux native build's `pin-nix-deps` step invokes `nix build` and
`nix eval` to root the static-build deps. On PR runs from forks the
preceding build step uses `NIX_CONFIG="access-tokens ="` so Nix
cannot use the GitHub token for fetches; the pin step inherited the
default config and bypassed that hardening.
Forward the same gate via an `env:` on the composite step so the
pin's Nix invocations honor the caller's `nix-github-token` input.
Co-authored-by: Codesmith <[email protected]>1 parent 5b7c773 commit 7776387
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
29 | 32 | | |
| 33 | + | |
| 34 | + | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| |||
0 commit comments