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
zizmor reveals "github.ref_name may expand into attacker-controllable code", should something else be used? #1748
zizmor's explanation of the reported problem: https://woodruffw.github.io/zizmor/audits/#template-injection (and explanation for why switching to the environment variable version fixes it: with the environment variables, the shell handles correctly quoting the injected text from the variable, whereas the template substitution version isn't escaped at all)
Reacted by Marco Edward Gorelli and FattiesPatties
Activity
ncoghlan commentedon Dec 23, 2024
zizmor's explanation of the reported problem: https://woodruffw.github.io/zizmor/audits/#template-injection (and explanation for why switching to the environment variable version fixes it: with the environment variables, the shell handles correctly quoting the injected text from the variable, whereas the template substitution version isn't escaped at all)