The notifier callers point at poli0981/.github/.gitea/workflows on Gitea, pinned to the ops main commit 8e6582a with `ops_ref` at the same SHA, so the Discord script matches the workflow. That commit carries the notifier fix for Gitea's workflow_run payload, which tag v2026.11.1 predates; move the pin when the ops repo is next tagged (Renovate does not bump it). Secrets are passed by name instead of `secrets: inherit` (runbook §3.2 item 3), so zizmor's secrets-inherit ignore and the ref-pin policy for poli0981/* go: every `uses:` is now hash-pinned. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
845 B
YAML
25 lines
845 B
YAML
name: Notify CI Failures
|
|
|
|
# Gitea matches `workflows` as a glob against each workflow's `name:`, so "*"
|
|
# watches every workflow here. The reusable posts only failures on `main`, and
|
|
# skips its own notifiers, releases and Renovate.
|
|
on:
|
|
workflow_run:
|
|
workflows: ["*"]
|
|
types: [completed]
|
|
|
|
# Matches the reusable's needs: `actions: read` to read the workflow_run details.
|
|
permissions:
|
|
contents: read
|
|
actions: read
|
|
|
|
jobs:
|
|
notify:
|
|
# Pinned like announce-release.yml: `ops_ref` is the same SHA as `uses:`.
|
|
uses: poli0981/.github/.gitea/workflows/notify-ci-failure.yml@8e6582af9a5846b4d8995b26b1421488d29d761b # ops main 2026-11-23 (untagged, after v2026.11.1)
|
|
with:
|
|
default_branch: main
|
|
ops_ref: 8e6582af9a5846b4d8995b26b1421488d29d761b
|
|
secrets:
|
|
DISCORD_CI_WEBHOOK: ${{ secrets.DISCORD_CI_WEBHOOK }}
|