diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2026-05-20 16:05:40 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2026-05-20 16:56:02 +0900 |
| commit | 0dc0280bb2542a7c8721536ce998bfb8f2401b5d (patch) | |
| tree | 5117b6825c232444b996329cd368042ff0b0fe2c /tool/ruby_vm | |
| parent | fd6a25342f071ada81bf0b452a6fd530468d7bb8 (diff) | |
zizmor flags `cd "${{ inputs.archname }}/"` inside `run:` blocks as
code injection via template expansion: GitHub Actions substitutes the
input value into the shell script verbatim, so a caller passing shell
metacharacters could execute arbitrary code.
Hoist `ARCHNAME: ${{ inputs.archname }}` to the job-level `env:` block
and reference it as `$ARCHNAME` in shell, matching the pattern already
used by tarball-windows.yml (see 942f45b2af).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'tool/ruby_vm')
0 files changed, 0 insertions, 0 deletions
