Debian Codegraph @

.github/workflows/cppcheck.yml

raw
1 # This is a basic workflow to help you get started with Actions
2
3 name: cppcheck
4
5 # Controls when the action will run.
6 on:
7 # Triggers the workflow on push or pull request events but only for the master branch
8 push:
9 branches: [ master ]
10 pull_request:
11 branches: [ master ]
12
13 # Allows you to run this workflow manually from the Actions tab
14 workflow_dispatch:
15
16 # A workflow run is made up of one or more jobs that can run sequentially or in parallel
17 permissions:
18 contents: read
19
20 jobs:
21 # This workflow contains a single job called "build"
22 build:
23 # The type of runner that the job will run on
24 runs-on: ubuntu-20.04
25
26 # Steps represent a sequence of tasks that will be executed as part of the job
27 steps:
28 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
29 - name: Harden Runner
30 uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
31 with:
32 egress-policy: audit
33
34 - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
35 with:
36 submodules: recursive
37
38 # Runs a set of commands using the runners shell
39 - name: cppcheck
40 run: |
41 sudo apt-get update -qq
42 sudo apt-get install -qq -y cppcheck
43 sh ${{ github.workspace }}/scripts/cppcheck.sh . `getconf _NPROCESSORS_ONLN`