From 1dbfaf7c08ed1c17be9849fae86ecaadb16d14d8 Mon Sep 17 00:00:00 2001 From: JonoGitty Date: Tue, 27 Oct 2026 09:26:05 +0000 Subject: [PATCH] fix(action): report pass/total-events when no audit data is found 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 --- action.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 8d44ce6..8b698ae 100644 --- a/action.yml +++ b/action.yml @@ -55,19 +55,19 @@ inputs: outputs: pass: description: "Whether verification passed (true/false)" - value: ${{ steps.verify.outputs.pass }} + value: ${{ steps.verify.outputs.pass || steps.verify-fallback.outputs.pass }} total-events: description: "Total number of audit events" - value: ${{ steps.verify.outputs.total-events }} + value: ${{ steps.verify.outputs.total-events || steps.verify-fallback.outputs.total-events }} chained-events: description: "Number of hash-chained events" - value: ${{ steps.verify.outputs.chained-events }} + value: ${{ steps.verify.outputs.chained-events || steps.verify-fallback.outputs.chained-events }} attestation-path: description: "Path to the generated attestation artifact" value: ${{ steps.attest.outputs.attestation-path }} verify-json: description: "Full verification result as JSON" - value: ${{ steps.verify.outputs.verify-json }} + value: ${{ steps.verify.outputs.verify-json || steps.verify-fallback.outputs.verify-json }} runs: using: "composite"