-
Notifications
You must be signed in to change notification settings - Fork 46
fix(tekton): use env vars for JSON parameters to avoid quoting issues #3095
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
a6465c0 to
a63762a
Compare
Pass POLICY_CONFIGURATION and EXTRA_RULE_DATA via environment variables to safely handle JSON strings in Tekton task parameters. Assisted-by: Claude 4.5 Opus
a63762a to
b48a61f
Compare
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
robnester-rh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
User description
Pass POLICY_CONFIGURATION and EXTRA_RULE_DATA via environment variables to safely handle JSON strings in Tekton task parameters.
Fixes #3094
Assisted-by: Claude 4.5 Opus
PR Type
Bug fix, Tests
Description
Pass JSON parameters via environment variables to avoid shell quoting issues
Add two new test scenarios for JSON parameter handling
Refactor EC arguments array construction for better JSON handling
Improve error message output to stderr
Diagram Walkthrough
File Walkthrough
ta_task_validate_image.feature
Add test scenarios for JSON parametersfeatures/ta_task_validate_image.feature
parameter
verify-conforma-konflux-ta.yaml
Use env vars for JSON parameters in validate steptasks/verify-conforma-konflux-ta/0.1/verify-conforma-konflux-ta.yaml
POLICY_CONFIGURATIONfrom direct parameter substitution toenvironment variable reference
EXTRA_RULE_DATAhandling with conditional check and properarray syntax
POLICY_CONFIGURATIONandEXTRA_RULE_DATAin step env section>&2redirectionenvironment variables