ci: notify honua-evidence when producer snapshots change - #186
ci: notify honua-evidence when producer snapshots change#186mikemcdougall wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6369fbddf1
ℹ️ 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".
| - name: Dispatch to honua-evidence | ||
| env: | ||
| GH_TOKEN: ${{ secrets.HONUA_EVIDENCE_DISPATCH_TOKEN }} | ||
| continue-on-error: true |
There was a problem hiding this comment.
Limit fail-soft handling to missing dispatch token
With continue-on-error on the whole step, pushes where HONUA_EVIDENCE_DISPATCH_TOKEN is present but revoked, scoped incorrectly, or rejected by the dispatch endpoint still leave this workflow green after gh api exits non-zero. That makes the new event-driven aggregation path appear healthy while no producer-updated event is delivered; the empty-token branch already handles the intended nonblocking fallback, so configured-token dispatch failures should fail or at least be handled explicitly.
Useful? React with 👍 / 👎.
Sender half of honua-io/honua-evidence#3: fires a repository_dispatch (type
producer-updated) at honua-evidence when this repo's evidence-producer snapshot changes, so aggregation runs promptly instead of waiting for the daily cron. Fails soft with a warning ifHONUA_EVIDENCE_DISPATCH_TOKENis unset (the secret is already configured in this repo). No checkout, read-only permissions, single gh api call.