ci: automatically open an issue in case the fuzzing CI fails

This commit is contained in:
Beat Küng 2025-07-14 13:26:46 +02:00 committed by Daniel Agar
parent ba678120d8
commit ee62a55adc
2 changed files with 16 additions and 0 deletions

6
.github/fuzzing_issue_template.md vendored Normal file
View File

@ -0,0 +1,6 @@
---
title: '[CI] Fuzzing Workflow Failed'
labels: ['Fuzzing']
---
The automated fuzzing workflow has failed.
See {{ env.WORKFLOW_RUN_URL }} for details.

View File

@ -36,3 +36,13 @@ jobs:
for fuzz_binary in build/px4_sitl_test/*fuzz*; do for fuzz_binary in build/px4_sitl_test/*fuzz*; do
./Tools/ci/run_fuzz_tests.sh $fuzz_binary 15m ./Tools/ci/run_fuzz_tests.sh $fuzz_binary 15m
done 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