Commit c802283
fix(danger): harden extra-install-packages against host-shell interpolation (#169)
* fix(danger): harden extra-install-packages against host-shell interpolation
The package list was interpolated by the host shell into the
`docker exec ... sh -c "..."` command string. Although the upstream
"Validate package names" step already rejects shell metacharacters,
building the command string on the host is the exact pattern #152
(VULN-1100) set out to eliminate everywhere.
Pass the value into the container via `docker exec -e` and expand it
inside a single-quoted `sh -c` body so neither the host shell nor
GitHub Actions expression evaluation ever constructs the command
string. Behavior is unchanged for valid inputs (covered by the
existing extra-packages-test CI job).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs(changelog): add PR number to unreleased entry
Danger requires the changelog entry to reference the PR number.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b6d9e26 commit c802283
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
| |||
0 commit comments