Skip to content

Conversation

b-
Copy link
Contributor

@b- b- commented Aug 11, 2025

Currently, differences found during the parity check will be output to stdout and thus the logs. This can leak secrets, as can be seen here

This silences the diff output by doing the check with diff -q.

Currently, differences found during the parity check will be output to stdout and thus the logs. This can leak secrets, as can be seen [here](https://github.com/perchnet/p/actions/runs/16870494518/job/47784366635#step:11:520)

This silences the diff output by doing the check with `diff -q`.
@b- b- requested a review from rdhar as a code owner August 11, 2025 04:03
Copy link
Member

@rdhar rdhar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @b-, many thanks for this excellent PR! This'll sure to be included in the next release of TF-via-PR.

I'm surprised/worried it hadn't been raised earlier -- I guess most folks don't use the plan-parity: true option, let alone pay attention to workflow logs. 😅

On a different tangent, I have clocked this message of yours and intend on responding to it in bits & pieces to approach your ideal workflow. Off the top of my head, I recall your having to commit with no-op formatting changes and store the output in a separate file. For that, in addition to format: true, we can pass arg-check: false and arg-write: true (see doc) to allow fmt to update improperly formatted files automatically instead of exiting out.

@rdhar rdhar merged commit 6f9a49c into OP5dev:main Aug 12, 2025
10 checks passed
@rdhar
Copy link
Member

rdhar commented Aug 26, 2025

Happy to see this shipped with v13.7.0 (v13), where your contribution has been credited!

Please consider ⭐ this project, if you or your team find it useful.

GitHub repository stargazers


@b- This is sure to make workflow logs a lot cleaner! Speaking of, I'm aiming to address #500 in subsequent releases -- thank you!

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.

2 participants