diff --git a/.github/workflows/cppcheck.yml b/.github/workflows/cppcheck.yml index c998ac3e..f2fd77aa 100644 --- a/.github/workflows/cppcheck.yml +++ b/.github/workflows/cppcheck.yml @@ -1,18 +1,10 @@ -name: cppcheck -on: [pull_request] +name: linting +on: [pull_request] jobs: - cppchceck: + linting: name: cppcheck runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - with: - ref: ${{ github.event.pull_request.head.sha }} - persist-credentials: false - - uses: linuxdeepin/action-cppcheck@v0.0.11 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - repository: ${{ github.repository }} - pull_request_id: ${{ github.event.pull_request.number }} - allow_approve: false + - name: c-linter + uses: tonybaloney/cppcheck-action@master