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
fix: complete script injection hardening across all actions (#152)
* fix: complete script injection hardening across all actions
PR #150 moved user inputs to env vars but left step outputs
(`steps.*.outputs.*`) directly interpolated in `run:` blocks —
an attacker controlling e.g. git tags in a dependency repo could
still inject arbitrary commands.
Additionally, switch all PowerShell run blocks from double-quote
string interpolation (`"$env:VAR"`) to string concatenation
(`'prefix' + $env:VAR`) to eliminate any possibility of
subexpression evaluation.
Changes:
- updater/action.yml: move all remaining step outputs (tags, URLs,
branch names) to env vars; replace double-quote interpolation
with concatenation throughout
- sentry-cli/integration-test/action.yml: same concatenation fix
- danger/action.yml: move docker image version from direct
interpolation to env var with semver validation
Refs: VULN-1100
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
* Update updater/action.yml
Co-authored-by: Copilot <[email protected]>
* fix(updater): URL-encode existing-PR query params; add changelog entry
PR branches derived from CMake dependency paths can contain '#', which
the previous query-string concatenation would treat as a URL fragment
delimiter and truncate. Switch to `gh api -X GET -f` so gh URL-encodes
the values, ensuring existing PRs are still matched when the branch
name contains special characters.
Also add the changelog entry for this PR so the advisory danger check
passes.
---------
Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
Co-authored-by: Copilot <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@
10
10
11
11
### Fixes
12
12
13
+
- Complete script injection hardening across all actions: move remaining step outputs to env vars, validate Danger version against semver ([#152](https://github.com/getsentry/github-workflows/pull/152))
13
14
- Updater - Trigger CI for new PRs without changelog updates ([#166](https://github.com/getsentry/github-workflows/pull/166))
14
15
- Updater - Select the first branch when multiple branches point at `HEAD` ([#165](https://github.com/getsentry/github-workflows/pull/165))
0 commit comments