Coverity CI changes: remove internal workflow and add 'covscan' label workflow for PRs #5674
Workflow file for this run
This file contains 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: "Analyze (target)" | |
on: | |
pull_request_target: | |
branches: [master] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
cancel-in-progress: true | |
jobs: | |
cppcheck: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
persist-credentials: false | |
- name: Perform cppcheck analysis | |
# v0.0.11 is the latest release but we need a later commit | |
uses: linuxdeepin/action-cppcheck@e63fb1d3f321e0467737aa9de7f691360fb1b8fb | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
repository: ${{ github.repository }} | |
pull_request_id: ${{ github.event.pull_request.number }} | |
allow_approve: false | |
enable_checks: "warning,unusedFunction,missingInclude" | |
comment_result: false | |
result: | |
name: All tests are successful | |
if: ${{ always() }} | |
runs-on: ubuntu-latest | |
needs: [cppcheck] | |
steps: | |
- name: Fail on failure | |
if: ${{ needs.cppcheck.result != 'success' }} | |
run: exit 1 |