Skip to content

fix(ci): render OpenTofu PR output - #23

Merged
xnoto merged 3 commits into
mainfrom
fix/render-pr-workflow-output
Aug 28, 2026
Merged

xnoto merged 3 commits into
mainfrom
fix/render-pr-workflow-output

Conversation

@xnoto

@xnoto xnoto commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • render OpenTofu plan comments as diff code blocks after removing ANSI control sequences
  • capture and post redacted validation output for both passed and failed OpenTofu CI checks
  • retain only the end of oversized validation output (12,000 characters); plan output remains capped to its final 1,000 lines
  • give this repository’s CI PR comment the same sanitized, bounded output format and run it on ubuntu-latest until an arc runner scale set is available

Validation

  • GitHub Actions PR checks are the validation authority; no local checks were run.

Security

  • Reviewed the changed workflows: no secrets, credentials, state, kubeconfig data, or sensitive plan output were added. Captured output continues to redact token-like values; plan redaction remains in place.

@xnoto
xnoto requested a review from a team as a code owner August 28, 2026 00:31
@github-actions

github-actions Bot commented Aug 28, 2026

Copy link
Copy Markdown

Shared workflows CI passed

View the workflow run.

Validation output (redacted, last 12000 characters)

[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Initializing environment for https://github.com/gitleaks/gitleaks.
[INFO] Initializing environment for https://github.com/rhysd/actionlint.
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/gitleaks/gitleaks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/rhysd/actionlint.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
check for case conflicts.................................................Passed
check for merge conflicts................................................Passed
check for broken symlinks............................(no files to check)Skipped
check vcs permalinks.....................................................Passed
detect destroyed symlinks................................................Passed
detect private key.......................................................Passed
mixed line ending........................................................Passed
trim trailing whitespace.................................................Passed
Detect hardcoded secrets.................................................Passed
Lint GitHub Actions workflow files.......................................Passed

@xnoto
xnoto merged commit d6cfa77 into main Aug 28, 2026
1 check passed
@xnoto
xnoto deleted the fix/render-pr-workflow-output branch August 28, 2026 00:55
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.

1 participant