From c0f5627b6323714a4409fc4af85d3d185b18e51f Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Fri, 10 Jul 2026 08:13:00 -0700 Subject: [PATCH 1/3] Use shared workflow failure issue --- .github/workflows/codeql.yml | 2 +- .../reusable-workflow-notification.yml | 43 ------------------- 2 files changed, 1 insertion(+), 44 deletions(-) delete mode 100644 .github/workflows/reusable-workflow-notification.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index d76e6305e2..bd2c78fc4c 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -70,6 +70,6 @@ jobs: needs: - analyze if: always() && github.event_name == 'schedule' - uses: ./.github/workflows/reusable-workflow-notification.yml + uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@70659e38ed50e743a5cce6fb40ba336c40154aa1 with: success: ${{ needs.analyze.result == 'success' }} diff --git a/.github/workflows/reusable-workflow-notification.yml b/.github/workflows/reusable-workflow-notification.yml deleted file mode 100644 index e31c875cfa..0000000000 --- a/.github/workflows/reusable-workflow-notification.yml +++ /dev/null @@ -1,43 +0,0 @@ -# this is useful because notifications for scheduled workflows are only sent to the user who -# initially created the given workflow -name: Reusable - Workflow notification - -on: - workflow_call: - inputs: - success: - type: boolean - required: true - -permissions: - contents: read - -jobs: - workflow-notification: - permissions: - contents: read - issues: write - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - - - name: Open issue or add comment if issue already open - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - number=$(gh issue list --search "in:title Workflow failed: $GITHUB_WORKFLOW" --limit 1 --json number -q .[].number) - - echo $number - echo ${{ inputs.success }} - - if [[ $number ]]; then - if [[ "${{ inputs.success }}" == "true" ]]; then - gh issue close $number - else - gh issue comment $number \ - --body "See [$GITHUB_WORKFLOW #$GITHUB_RUN_NUMBER](https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID)." - fi - elif [[ "${{ inputs.success }}" == "false" ]]; then - gh issue create --title "Workflow failed: $GITHUB_WORKFLOW (#$GITHUB_RUN_NUMBER)" \ - --body "See [$GITHUB_WORKFLOW #$GITHUB_RUN_NUMBER](https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID)." - fi From 8b3f5156a454c450f8cec4c33edd56fa3dcf5f62 Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Fri, 10 Jul 2026 08:39:29 -0700 Subject: [PATCH 2/3] Use shared-workflows v0.3.0 --- .github/workflows/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index bd2c78fc4c..d70cb3c5d4 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -70,6 +70,6 @@ jobs: needs: - analyze if: always() && github.event_name == 'schedule' - uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@70659e38ed50e743a5cce6fb40ba336c40154aa1 + uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@v0.3.0 with: success: ${{ needs.analyze.result == 'success' }} From bce732dbfe38aab67bcf91d66a11f4abc114eaa7 Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Fri, 10 Jul 2026 08:45:05 -0700 Subject: [PATCH 3/3] Pin shared-workflows v0.3.0 by commit SHA --- .github/workflows/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index d70cb3c5d4..30d97e6319 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -70,6 +70,6 @@ jobs: needs: - analyze if: always() && github.event_name == 'schedule' - uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@v0.3.0 + uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@70659e38ed50e743a5cce6fb40ba336c40154aa1 # v0.3.0 with: success: ${{ needs.analyze.result == 'success' }}