Skip to content

ci: harden workflows against script injection - #222

Merged
zfarrell merged 1 commit into
mainfrom
ci/harden-workflow-injection
Oct 16, 2026
Merged

zfarrell merged 1 commit into
mainfrom
ci/harden-workflow-injection

Conversation

@zfarrell

Copy link
Copy Markdown
Contributor

Moves workflow inputs and step outputs out of run: scripts into env vars (fixes Aikido critical template injection in cut-release.yml), and sets persist-credentials explicitly on every checkout.

Pass inputs.bump, the App slug and the PR number to run steps through
env instead of interpolating ${{ }} into the shell script, which
Aikido flags as template injection (critical, cut-release.yml).

Also set persist-credentials explicitly on every checkout: false where
the job never pushes, true in cut-release where release.sh pushes the
release branch and tag.
@zfarrell
zfarrell requested a review from a team as a code owner October 16, 2026 16:06
@zfarrell
zfarrell requested review from eddietejeda and removed request for a team October 16, 2026 16:06
@zfarrell
zfarrell merged commit 4e231a9 into main Oct 16, 2026
4 checks passed
@zfarrell
zfarrell deleted the ci/harden-workflow-injection branch October 16, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant