From ee62a55adc52ed862a5f88846d5007cdee77ae41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Mon, 14 Jul 2025 13:26:46 +0200 Subject: [PATCH] ci: automatically open an issue in case the fuzzing CI fails --- .github/fuzzing_issue_template.md | 6 ++++++ .github/workflows/fuzzing.yml | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 .github/fuzzing_issue_template.md diff --git a/.github/fuzzing_issue_template.md b/.github/fuzzing_issue_template.md new file mode 100644 index 0000000000..c15c03d935 --- /dev/null +++ b/.github/fuzzing_issue_template.md @@ -0,0 +1,6 @@ +--- +title: '[CI] Fuzzing Workflow Failed' +labels: ['Fuzzing'] +--- +The automated fuzzing workflow has failed. +See {{ env.WORKFLOW_RUN_URL }} for details. diff --git a/.github/workflows/fuzzing.yml b/.github/workflows/fuzzing.yml index 72e81ac365..c2da779c62 100644 --- a/.github/workflows/fuzzing.yml +++ b/.github/workflows/fuzzing.yml @@ -36,3 +36,13 @@ jobs: for fuzz_binary in build/px4_sitl_test/*fuzz*; do ./Tools/ci/run_fuzz_tests.sh $fuzz_binary 15m done + + # Create a github issue in case of a failure + - name: Create Issue + if: ${{ failure() }} + uses: JasonEtco/create-an-issue@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + WORKFLOW_RUN_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} + with: + filename: .github/fuzzing_issue_template.md