From 865de93b6796b34dc5396c5e5ec8ac486d869480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Palmer?= Date: Thu, 29 Feb 2024 13:22:53 +0100 Subject: [PATCH] custom cppcheck --- .github/workflows/cppcheck.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cppcheck.yml b/.github/workflows/cppcheck.yml index db95d533..a4fda4aa 100644 --- a/.github/workflows/cppcheck.yml +++ b/.github/workflows/cppcheck.yml @@ -6,14 +6,14 @@ jobs: 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 + - name: Install cppcheck + run: sudo apt-get install -y -q cppcheck + + - name: checkout + uses: actions/checkout@v4 with: - github_token: ${{ secrets.GITHUB_TOKEN }} repository: ${{ github.repository }} - pull_request_id: ${{ github.event.pull_request.number }} - enable_checks: warning --inline-suppr - allow_approve: false + ref: ${{ github.ref }} + + - name: Check + run: cppcheck src/