feat(ci): page Grafana IRM on main-branch workflow failures#255
Merged
DevSecNinja merged 2 commits intomainfrom May 1, 2026
Merged
feat(ci): page Grafana IRM on main-branch workflow failures#255DevSecNinja merged 2 commits intomainfrom
DevSecNinja merged 2 commits intomainfrom
Conversation
Adds a notify-irm job to every push-triggered workflow that consumes
the new reusable composite action
DevSecNinja/.github/.github/actions/notify-irm. On a push:main
failure the workflow POSTs state=alerting to the homelab Grafana IRM
Custom webhook; a green follow-up run posts state=ok to the same
alert_uid (gha-<repo>-<workflow>-<branch>) so the open incident
auto-resolves.
Workflows extended:
- ci.yaml (push:main)
- devcontainer-prebuild.yaml (push:main + tags + schedule + dispatch;
PR runs excluded)
- docs.yml (push:main)
- release-please.yml (push:main)
- sign-powershell.yml (push:main)
- release.yml (tag-push; resolve-on-success disabled because
alert_uid is per-tag and never re-fires)
The composite action is silently skipped when GRAFANA_IRM_WEBHOOK_URL
is unset, so this is a no-op for forks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
notify-irmjob to every push-triggered workflow that consumes the new reusable composite actionDevSecNinja/.github/.github/actions/notify-irm. On apush:mainfailure the workflow POSTsstate=alertingto the homelab Grafana IRM Custom webhook; a green follow-up run postsstate=okto the samealert_uid(gha-<repo>-<workflow>-<branch>) so the open incident auto-resolves.Mirrors the same rollout in DevSecNinja/truenas-apps#306.
Workflows extended
resolve-on-successci.yamlpushtomaintruedevcontainer-prebuild.yamltruedocs.ymlpushtomaintruerelease-please.ymlpushtomaintruesign-powershell.ymlpushtomaintruerelease.yml(tag push)if: always())false—alert_uidis keyed on the tag and never re-firesThe composite action is silently skipped when
GRAFANA_IRM_WEBHOOK_URLis unset, so this remains a no-op on forks and during initial bring-up.Verification
actionlintandzizmorproduced only pre-existing findings (unrelated to the newnotify-irmjobs).a877d352(merge SHA of DevSecNinja/.github#51 onmain).