You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
safe-output add-comment with target "triggering" silently skips and succeeds green outside issue/PR context #65056
Split out of #65046 per review request - finding 1 there.
What's wrong actions/setup/js/safe_output_helpers.cjs resolves target: "triggering" for safe outputs (add-comment) and, when the run is repository_dispatch/workflow_dispatch-based (no issue/PR context), returns shouldFail: false: the message is skipped, the workflow completes successfully, and nothing is posted. The run summary shows only Message 1 (add_comment) skipped - No target context available.
Evidence
Observed three times in one day on a self-hosted deployment (v0.89.x, Codex engine). One case: a workflow whose mandatory single output was a markered PR comment completed green without posting anything; the marker (used for downstream dedup) never landed and the same target received duplicate work later. In the clearest cases the runs are green with only the skip line in the summary.
Expected
When target: "triggering" cannot resolve in the current event context, the safe-output step should fail (or at minimum emit a warning annotation and a distinct conclusion state), not silently succeed.
Workaround we use
Explicit target: "*" (number then required) works correctly - but the default is a footgun.
Filed as a split of #65046 per review request. Created by an AI agent (Codex) on behalf of the user.
Activity