| 1 |
name: "Code scanning - action" |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: |
| 6 |
- develop |
| 7 |
- master |
| 8 |
- release/* |
| 9 |
pull_request: |
| 10 |
schedule: |
| 11 |
- cron: '0 19 * * 1' |
| 12 |
workflow_dispatch: |
| 13 |
|
| 14 |
concurrency: |
| 15 |
group: ${{ github.workflow }}-${{ github.ref || github.run_id }} |
| 16 |
cancel-in-progress: true |
| 17 |
|
| 18 |
permissions: |
| 19 |
contents: read |
| 20 |
|
| 21 |
jobs: |
| 22 |
CodeQL-Build: |
| 23 |
|
| 24 |
runs-on: ubuntu-latest |
| 25 |
permissions: |
| 26 |
security-events: write |
| 27 |
|
| 28 |
steps: |
| 29 |
- name: Harden Runner |
| 30 |
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf |
| 31 |
with: |
| 32 |
egress-policy: audit |
| 33 |
|
| 34 |
- name: Checkout repository |
| 35 |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 |
| 36 |
|
| 37 |
|
| 38 |
- name: Initialize CodeQL |
| 39 |
uses: github/codeql-action/init@fc7e4a0fa01c3cca5fd6a1fddec5c0740c977aa2 |
| 40 |
with: |
| 41 |
languages: c-cpp |
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
- name: Autobuild |
| 46 |
uses: github/codeql-action/autobuild@fc7e4a0fa01c3cca5fd6a1fddec5c0740c977aa2 |
| 47 |
|
| 48 |
- name: Perform CodeQL Analysis |
| 49 |
uses: github/codeql-action/analyze@fc7e4a0fa01c3cca5fd6a1fddec5c0740c977aa2 |