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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
COMMENT_ARGS
is escaping every single character for my attempt at a targeted plan:\-\t\a\r\g\e\t\=\f\a\k\e\.\r\e\s\o\u\r\c\e
when using a custom run line (https://www.runatlantis.io/docs/custom-workflows.html#custom-init-plan-apply-commands) that appends$COMMENT_ARGS
to the end of the terraform command.The default plan command in the context gets the unescaped
commentFlags
:atlantis/server/events/project_command_context_builder.go
Line 120 in 90e92e3
But the
COMMENT_ARGS
usesescapedCommentArgs
, which runsfunc escapeArgs
againstcommentFlags
atlantis/server/events/project_command_context_builder.go
Lines 116 to 125 in 90e92e3
to create
escapedCommentArgs
atlantis/server/events/project_command_context_builder.go
Line 211 in 90e92e3
and the
func escapeArgs
atlantis/server/events/project_command_context_builder.go
Lines 271 to 281 in 90e92e3
is run for every single character whether it would need escaping or not:
atlantis/server/events/project_command_context_builder.go
Lines 275 to 277 in 90e92e3
but then the tests ignore the
func escapeArgs
and repeatedly pass contexts with unescaped text as if it were escaped.atlantis/server/core/runtime/run_step_runner_test.go
Line 140 in 90e92e3
atlantis/server/core/runtime/plan_type_step_runner_delegate_test.go
Line 53 in 90e92e3
atlantis/server/core/runtime/plan_type_step_runner_delegate_test.go
Line 111 in 90e92e3
atlantis/server/core/runtime/plan_type_step_runner_delegate_test.go
Line 140 in 90e92e3
atlantis/server/core/runtime/apply_step_runner_test.go
Line 217 in 22dec19
atlantis/server/core/runtime/policy_check_step_runner_test.go
Line 27 in 90e92e3
Is there something I'm missing or some flag to use non-escaped context?
Beta Was this translation helpful? Give feedback.
All reactions