Fix diagnostics workflow heredoc indentation - #32
Conversation
There was a problem hiding this comment.
💡 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".
| 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 |
There was a problem hiding this comment.
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 👍 / 👎.
Summary
Tests