Skip to content

Fix diagnostics workflow heredoc indentation - #32

Merged
Pigbibi merged 1 commit into
mainfrom
codex/fix-diagnose-yaml-heredoc
May 10, 2026
Merged

Fix diagnostics workflow heredoc indentation#32
Pigbibi merged 1 commit into
mainfrom
codex/fix-diagnose-yaml-heredoc

Conversation

@Pigbibi

@Pigbibi Pigbibi commented May 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • indent the embedded Python heredoc so diagnose.yml remains valid GitHub Actions YAML

Tests

  • not run locally; workflow syntax fix

@Pigbibi
Pigbibi merged commit e83bf95 into main May 10, 2026
1 check passed
@Pigbibi
Pigbibi deleted the codex/fix-diagnose-yaml-heredoc branch May 10, 2026 17:36

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ce0c066308

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +104 to +112
import os
import time

print("container_epoch", int(time.time()))
if os.environ.get("TOTP_SECRET"):
print("totp_seconds_remaining", 30 - (int(time.time()) % 30))
else:
print("totp_secret_present", False)
PY' || true

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Unindent Python heredoc payload passed to bash

Indenting the heredoc body/terminator inside bash -lc 'python3 - <<'PY' ... PY' causes the command to mis-parse at runtime: bash does not match an indented PY terminator, and the preserved leading spaces make top-level Python lines raise IndentationError. In this workflow step, that means the container_epoch / totp_seconds_remaining diagnostics are never produced (the failure is masked by || true).

Useful? React with 👍 / 👎.

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