Skip to content

Harden docker pull against command injection in deploy-prod workflow #5

Description

@coderabbitai

Summary

The deploy-prod.yml workflow uses a raw workflow_dispatch input (inputs.image) directly in a shell command without validation or quoting. A crafted image value could execute arbitrary shell fragments on the self-hosted production runner.

Steps to Address

  • Validate inputs.image against a tight whitelist (e.g., allow only registry/name[:tag] characters — alphanumerics, ., -, _, /, :, @) before use.
  • Reject any value containing shell metacharacters.
  • Pass the validated value to docker pull wrapped in quotes (e.g., "$IMAGE").

References

Requested by @ForeverProglamer.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions