Skip to content

Conversation

@madrob
Copy link
Contributor

@madrob madrob commented Dec 17, 2025

Instead of evaluating inputs directly in the run step, save them to an environment variable and evaluate that.

Motivation:

Evaluating workflow inputs directly can lead to injection attacks, such as those described at https://docs.zizmor.sh/audits/#template-injection

Modifications:

Evaluate workflow inputs as environment variables so that they do not inadvertently execute arbitrary shell injections.

Result:

The workflows should be more secure against malicious inputs.

@madrob madrob requested review from FranzBusch and rnro December 17, 2025 20:14
@FranzBusch FranzBusch added the semver/none No version bump required. label Dec 18, 2025
@FranzBusch
Copy link
Member

@madrob Can you fix up the YAML lint?

@madrob
Copy link
Contributor Author

madrob commented Dec 18, 2025

@madrob Can you fix up the YAML lint?

377eb74

@madrob madrob force-pushed the template-injection branch from 6e33b69 to ce4d63b Compare December 19, 2025 16:56
@madrob
Copy link
Contributor Author

madrob commented Dec 22, 2025

@FranzBusch good to merge here now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants