Fix report base for code scanning #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Mutation Testing | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| security-events: write | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| mutation-testing: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ubuntu:26.04 | |
| steps: | |
| - name: Install prerequisites | |
| run: apt-get update && apt-get install -y curl ca-certificates git clang-22 | |
| - name: Mark workspace as safe for git | |
| run: git config --global --add safe.directory '*' | |
| - uses: actions/checkout@v4 | |
| - name: Install mull from nightly | |
| run: | | |
| curl -1sLf 'https://dl.cloudsmith.io/public/mull-project/mull-nightly/setup.deb.sh' | bash | |
| apt-get install -y mull-22 | |
| - name: Build range_tests | |
| run: | | |
| clang-22 \ | |
| -fpass-plugin=/usr/lib/mull-ir-frontend-22 \ | |
| -g -grecord-command-line \ | |
| range_tests.c -o range_tests | |
| - name: Run mull | |
| run: | | |
| mull-runner-22 \ | |
| --reporters GitHubAnnotations \ | |
| --reporters Sarif \ | |
| --report-name mull-report \ | |
| --report-patch-base $(realpath .) \ | |
| --allow-surviving \ | |
| range_tests | |
| - name: Upload SARIF artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: mull-report | |
| path: mull-report.sarif | |
| - name: Upload SARIF to Code Scanning | |
| uses: github/codeql-action/upload-sarif@v4 | |
| with: | |
| sarif_file: mull-report.sarif |