Commit e0accbf
fix(ci): route pr-labels entry guard through invoked-as.mjs
check:entry-guard rejected the hand-typed `process.argv[1]` comparison the
previous commit shipped. The gate is right: node resolves symlinks for the
module graph but leaves `process.argv[1]` as the caller typed it, so the
hand-typed guard answers false through a symlink and the script does nothing
-- exit 0, no output, which a caller reading the status reads as success.
Measured on this tree with the two spellings side by side, each reached
directly and through a symlink:
old-guard -> exit=0 output=RAN
old-link -> exit=0 output=(nothing)
new-guard -> exit=0 output=RAN
new-link -> exit=0 output=RAN
`scripts/**` has exactly one sanctioned predicate. Uses it, and drops the now
unused pathToFileURL import.
The file stays OFF KNOWN_IMPORT_UNSAFE: it exports bindings and the gate still
counts 10 known-unsafe (unchanged), with this file among the 75 inert
exporters. Verified directly -- importing it with `--size` in argv runs
nothing and still yields every export.
Refs #10703
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DdCnBGcHeufjrq7drTD3wt1 parent ce525a0 commit e0accbf
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
| 111 | + | |
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| |||
767 | 768 | | |
768 | 769 | | |
769 | 770 | | |
770 | | - | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
771 | 779 | | |
772 | 780 | | |
773 | 781 | | |
| |||
0 commit comments