From d07abb804af8cae1a1adafbae44a11d2c4fd0893 Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Fri, 10 Jul 2026 11:16:43 -0700 Subject: [PATCH 1/2] Remove unused failure issue workflow --- .../reusable-open-issue-on-failure.yml | 24 ------------------- 1 file changed, 24 deletions(-) delete mode 100644 .github/workflows/reusable-open-issue-on-failure.yml diff --git a/.github/workflows/reusable-open-issue-on-failure.yml b/.github/workflows/reusable-open-issue-on-failure.yml deleted file mode 100644 index f3129b82657..00000000000 --- a/.github/workflows/reusable-open-issue-on-failure.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Reusable - Open issue on workflow failure - -on: - workflow_call: - -permissions: - contents: read - -jobs: - open-issue: - permissions: - contents: read - issues: write # for creating the issue - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - - - name: Open issue - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh issue create --title "$GITHUB_WORKFLOW #$GITHUB_RUN_NUMBER failed" \ - --label Bug \ - --body "See [$GITHUB_WORKFLOW #$GITHUB_RUN_NUMBER](https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID)." From b925facfcf3ae25e4fe32539e6665b9113c2a07c Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Fri, 10 Jul 2026 12:02:23 -0700 Subject: [PATCH 2/2] Add failure issue notifications --- .github/workflows/benchmark.yml | 10 ++++++++++ .github/workflows/build-daily.yml | 5 ++--- .github/workflows/build-tracecontext-testsuite.yml | 10 ++++++++++ .github/workflows/codeql.yml | 12 +++++++++++- .github/workflows/fossa.yml | 10 ++++++++++ .github/workflows/issue-management-stale-action.yml | 10 ++++++++++ .github/workflows/javadoc-crawler.yml | 10 ++++++++++ .github/workflows/ossf-scorecard.yml | 10 ++++++++++ .../sonatype-guide-dependency-audit-daily.yml | 5 ++--- 9 files changed, 75 insertions(+), 7 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 7300489ada6..dcbae490625 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -65,3 +65,13 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} benchmark-data-dir-path: "benchmarks" auto-push: true + + workflow-notification: + permissions: + issues: write + needs: + - sdk-benchmark + if: always() + uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@7c49790392da7de86fdb4bb968446f9cb8461eb8 # v0.3.1 + with: + success: ${{ needs.sdk-benchmark.result == 'success' }} diff --git a/.github/workflows/build-daily.yml b/.github/workflows/build-daily.yml index 3fa0808f6fd..a6d46873c4f 100644 --- a/.github/workflows/build-daily.yml +++ b/.github/workflows/build-daily.yml @@ -42,13 +42,12 @@ jobs: workflow-notification: permissions: - contents: read issues: write needs: - link-check - publish-snapshots - if: always() && github.repository == 'open-telemetry/opentelemetry-java' - uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@70659e38ed50e743a5cce6fb40ba336c40154aa1 # v0.3.0 + if: always() + uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@7c49790392da7de86fdb4bb968446f9cb8461eb8 # v0.3.1 with: success: >- ${{ diff --git a/.github/workflows/build-tracecontext-testsuite.yml b/.github/workflows/build-tracecontext-testsuite.yml index d00a937a4ec..be7dc634882 100644 --- a/.github/workflows/build-tracecontext-testsuite.yml +++ b/.github/workflows/build-tracecontext-testsuite.yml @@ -35,3 +35,13 @@ jobs: context: integration-tests/tracecontext/docker push: true tags: ghcr.io/open-telemetry/java-test-containers:w3c-tracecontext-testsuite + + workflow-notification: + permissions: + issues: write + needs: + - publish + if: always() + uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@7c49790392da7de86fdb4bb968446f9cb8461eb8 # v0.3.1 + with: + success: ${{ needs.publish.result == 'success' }} diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 26421c18343..b6bba606c1b 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -64,4 +64,14 @@ jobs: - name: Perform CodeQL analysis uses: github/codeql-action/analyze@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0 with: - category: "/language:${{matrix.language}}" \ No newline at end of file + category: "/language:${{matrix.language}}" + + workflow-notification: + permissions: + issues: write + needs: + - analyze + if: always() && github.event_name == 'schedule' + uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@7c49790392da7de86fdb4bb968446f9cb8461eb8 # v0.3.1 + with: + success: ${{ needs.analyze.result == 'success' }} diff --git a/.github/workflows/fossa.yml b/.github/workflows/fossa.yml index 05d1c29aed2..e462203b130 100644 --- a/.github/workflows/fossa.yml +++ b/.github/workflows/fossa.yml @@ -19,3 +19,13 @@ jobs: with: api-key: ${{secrets.FOSSA_API_KEY}} team: OpenTelemetry + + workflow-notification: + permissions: + issues: write + needs: + - fossa + if: always() + uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@7c49790392da7de86fdb4bb968446f9cb8461eb8 # v0.3.1 + with: + success: ${{ needs.fossa.result == 'success' }} diff --git a/.github/workflows/issue-management-stale-action.yml b/.github/workflows/issue-management-stale-action.yml index 779d935230e..7de4a9649e2 100644 --- a/.github/workflows/issue-management-stale-action.yml +++ b/.github/workflows/issue-management-stale-action.yml @@ -31,3 +31,13 @@ jobs: This has been automatically marked as stale because it has been marked as needing author feedback and has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment. + + workflow-notification: + permissions: + issues: write + needs: + - stale + if: always() + uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@7c49790392da7de86fdb4bb968446f9cb8461eb8 # v0.3.1 + with: + success: ${{ needs.stale.result == 'success' }} diff --git a/.github/workflows/javadoc-crawler.yml b/.github/workflows/javadoc-crawler.yml index a7fc159c8c6..828a59893c7 100644 --- a/.github/workflows/javadoc-crawler.yml +++ b/.github/workflows/javadoc-crawler.yml @@ -27,3 +27,13 @@ jobs: run: ./gradlew :javadoc-crawler:crawl env: DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} + + workflow-notification: + permissions: + issues: write + needs: + - crawl + if: always() + uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@7c49790392da7de86fdb4bb968446f9cb8461eb8 # v0.3.1 + with: + success: ${{ needs.crawl.result == 'success' }} diff --git a/.github/workflows/ossf-scorecard.yml b/.github/workflows/ossf-scorecard.yml index d91242c421c..27a339174b3 100644 --- a/.github/workflows/ossf-scorecard.yml +++ b/.github/workflows/ossf-scorecard.yml @@ -47,3 +47,13 @@ jobs: uses: github/codeql-action/upload-sarif@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0 with: sarif_file: results.sarif + + workflow-notification: + permissions: + issues: write + needs: + - analysis + if: always() + uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@7c49790392da7de86fdb4bb968446f9cb8461eb8 # v0.3.1 + with: + success: ${{ needs.analysis.result == 'success' }} diff --git a/.github/workflows/sonatype-guide-dependency-audit-daily.yml b/.github/workflows/sonatype-guide-dependency-audit-daily.yml index 53e8b6ce15e..88c6047a0c1 100644 --- a/.github/workflows/sonatype-guide-dependency-audit-daily.yml +++ b/.github/workflows/sonatype-guide-dependency-audit-daily.yml @@ -43,11 +43,10 @@ jobs: workflow-notification: permissions: - contents: read issues: write needs: - analyze - if: always() && github.repository == 'open-telemetry/opentelemetry-java' - uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@70659e38ed50e743a5cce6fb40ba336c40154aa1 # v0.3.0 + if: always() + uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@7c49790392da7de86fdb4bb968446f9cb8461eb8 # v0.3.1 with: success: ${{ needs.analyze.result == 'success' }}