| 1 |
name: cppcheck |
| 2 |
on: |
| 3 |
pull_request_target: |
| 4 |
paths-ignore: |
| 5 |
- ".github/workflows/**" |
| 6 |
|
| 7 |
concurrency: |
| 8 |
group: ${{ github.workflow }}-pull/${{ github.event.number }} |
| 9 |
cancel-in-progress: true |
| 10 |
|
| 11 |
jobs: |
| 12 |
cppchceck: |
| 13 |
name: cppcheck |
| 14 |
runs-on: ubuntu-latest |
| 15 |
steps: |
| 16 |
- run: export |
| 17 |
- uses: actions/checkout@v3 |
| 18 |
with: |
| 19 |
ref: ${{ github.event.pull_request.head.sha }} |
| 20 |
persist-credentials: false |
| 21 |
- uses: linuxdeepin/action-cppcheck@main |
| 22 |
with: |
| 23 |
github_token: ${{ secrets.GITHUB_TOKEN }} |
| 24 |
repository: ${{ github.repository }} |
| 25 |
pull_request_id: ${{ github.event.pull_request.number }} |
| 26 |
allow_approve: false |