From 4641656e3f5cad033cf893331d58661e6ec284ed Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Fri, 13 Feb 2026 10:56:17 +0100 Subject: [PATCH] Add CI job to report main branch build failures via GitHub issues Uses jayqi/failed-build-issue-action to automatically create or comment on a "build failed" issue when any CI job fails on the main branch. Assigns the created issue to the committer who triggered the failure. Pins the action to a specific commit SHA for supply chain safety. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/build.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c0593d43def..7bccd570d66 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -342,3 +342,23 @@ jobs: - name: Test tor connections using lightning-net-tokio run: | TOR_PROXY="127.0.0.1:9050" RUSTFLAGS="--cfg=tor" cargo test --verbose --color always -p lightning-net-tokio + + notify-failure: + needs: [build, fuzz, linting, rustfmt, check_release, check_docs, benchmark, ext-test, tor-connect, coverage] + if: failure() && github.ref == 'refs/heads/main' + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - uses: jayqi/failed-build-issue-action@1a893bbf43ef1c2a8705e2b115cd4f0fe3c5649b # v1.2.0 + id: create-issue + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Assign issue to committer + if: steps.create-issue.outputs.issue-number + run: | + gh issue edit ${{ steps.create-issue.outputs.issue-number }} \ + --repo ${{ github.repository }} \ + --add-assignee ${{ github.event.head_commit.author.username }} + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}