Skip to content

Don't fail analyze when the PR comment can't post - #5

Merged
Anuragp22 merged 1 commit into
masterfrom
fix/github-comment-non-fatal
Jul 14, 2026
Merged

Don't fail analyze when the PR comment can't post#5
Anuragp22 merged 1 commit into
masterfrom
fix/github-comment-non-fatal

Conversation

@Anuragp22

Copy link
Copy Markdown
Owner

A failed --github-comment post made analyze exit 3 (tool failure) even when the analysis succeeded, masking the risk-based exit code. In CI's detached-HEAD pull_request checkout the comment can't resolve the PR, so every dogfooding run exited 3 and the blast-radius gate blocked the PR on what was really a MEDIUM (advisory) result. Now it logs a warning and lets the risk exit code stand.

This is the fix that stops the blast-radius gate red X on PRs. Takes effect for PRs opened after it merges (pull_request workflows run from the base branch).

🤖 Generated with Claude Code

A failed `--github-comment` post returned an error, so analyze exited 3 (tool
failure) even when the analysis itself succeeded — masking the risk-based exit
code. In CI's detached-HEAD pull_request checkout the comment post can't
resolve the PR, so every dogfooding run exited 3 and the blast-radius gate
blocked the PR on what was really a MEDIUM (advisory) result.

The exit code is the CI contract; the comment is a side effect. Log a warning
and continue, letting the risk-based exit code stand.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BcVscS2c2WCee2ZcU353bF
@Anuragp22
Anuragp22 merged commit 4dc8ac0 into master Jul 14, 2026
5 checks passed
@Anuragp22
Anuragp22 deleted the fix/github-comment-non-fatal branch July 14, 2026 10:24
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