You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] v47: recommend mapfile for preventing unwanted code execution in CI? #2880
Potential README update? Issue might in the consumer shell step, not in tj-actions/changed-files itself, but I don't see any mapfile or similar use recommendation in README.
If a PR includes a file whose name itself looks like a CLI flag, GitHub expands that output directly into the shell command line.
Example:
attacker adds a file named --config=pwn.cjs
attacker also adds pwn.cjs
Generated shell command becomes:
npx prettier --check --config=pwn.cjs pwn.cjs
At that point Prettier does not see --config=pwn.cjs as a filename — it sees it as an option. Since Prettier can load JS config/plugin files, that can turn attacker-controlled repo content into code execution in CI.
Activity