Skip to content

fix(action): report pass/total-events when no audit data is found - #6

Merged
JonoGitty merged 1 commit into
mainfrom
fix/action-no-data-outputs
Oct 27, 2026
Merged

JonoGitty merged 1 commit into
mainfrom
fix/action-no-data-outputs

Conversation

@JonoGitty

Copy link
Copy Markdown
Owner

What was wrong

The action's pass, total-events, chained-events and verify-json outputs read only from the verify step. That step is skipped when no events file is found. The verify-fallback step writes pass=false / total-events=0 for that case, but no output read them, so the outputs came back empty. That's why the "Test: No audit data" job failed on the v0.6.13 push (and on 12 May).

Fix

Each output now falls back to the verify-fallback value: steps.verify.outputs.X || steps.verify-fallback.outputs.X. Only one of the two steps runs, so the other side is always empty.

The fail-on-error gate is unchanged.

🤖 Generated with Claude Code

The action's outputs read only from the `verify` step, which is skipped
when no events file is found. The `verify-fallback` step wrote
pass=false / total-events=0 for that case, but nothing read them, so the
outputs came back empty and the "No audit data" test failed.

Each output now falls back to the `verify-fallback` value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JonoGitty
JonoGitty merged commit b753a68 into main Oct 27, 2026
8 of 9 checks passed
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