Commit aaa1a36
fix(pnpm-install): keep github-registry-token off disk (#279)
The token previously landed in ~/.npmrc as plain text, where any later
step in the same job could read it — a regression vs the npm pattern
this action replaced.
Instead, write the literal template '${GITHUB_REGISTRY_TOKEN}' into
~/.npmrc (single quotes, no shell expansion) and inject the env var
only for the install step. pnpm expands the template at registry-fetch
time; once the install step exits, the env var is gone and ~/.npmrc
holds an unusable template — later steps cannot exfiltrate the token.
Reported by František on the apify-core pnpm migration review.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 6cf59c7 commit aaa1a36
1 file changed
Lines changed: 16 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
45 | 52 | | |
46 | 53 | | |
47 | 54 | | |
48 | | - | |
49 | | - | |
50 | 55 | | |
51 | | - | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
| |||
70 | 75 | | |
71 | 76 | | |
72 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
73 | 81 | | |
74 | 82 | | |
75 | 83 | | |
76 | 84 | | |
77 | 85 | | |
78 | 86 | | |
79 | 87 | | |
| 88 | + | |
0 commit comments