Skip to content
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

Config branch #8

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Config branch #8

wants to merge 14 commits into from

Conversation

Adean64
Copy link

@Adean64 Adean64 commented Jun 12, 2024

The current main branch strategy of echo "${{ steps.apply.outputs.stdout }}" >> apply.log inadvertently escapes string sequences in the Terraform printout standard output (of which there are plenty). Any bash-unsafe characters are open to shell interpretation inside strings, causing the potential for syntax errors at best and shell injection at worst.

This introduces the tee command to simultaneously print the standard output/standard error and write to an apply.log file, rather than print the output >> append to file in future steps.

This PR also includes the change to the GitHub comment that removes the noisy "refreshing state/reading data source/read complete after" portions of the Terraform printout(still preserved in the apply.log), which helps with comment readability and, in some cases (for larger statefiles), comment size.

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.

None yet

1 participant