|
| 1 | +# For most projects, this workflow file will not need changing; you simply need |
| 2 | +# to commit it to your repository. |
| 3 | +# |
| 4 | +# You may wish to alter this file to override the set of languages analyzed, |
| 5 | +# or to provide custom queries or build logic. |
| 6 | +# |
| 7 | +# ******** NOTE ******** |
| 8 | +# We have attempted to detect the languages in your repository. Please check |
| 9 | +# the `language` matrix defined below to confirm you have the correct set of |
| 10 | +# supported CodeQL languages. |
| 11 | +# |
| 12 | +# name: "CodeQL Advanced" |
| 13 | + |
| 14 | +# on: |
| 15 | +# push: |
| 16 | +# branches: ["main"] |
| 17 | +# pull_request: |
| 18 | +# branches: ["main"] |
| 19 | + |
| 20 | +# jobs: |
| 21 | +# analyze: |
| 22 | +# name: Analyze (${{ matrix.language }}) |
| 23 | +# runs-on: ubuntu-latest |
| 24 | +# permissions: |
| 25 | +# security-events: write |
| 26 | +# packages: read |
| 27 | +# actions: read |
| 28 | +# contents: read |
| 29 | + |
| 30 | +# strategy: |
| 31 | +# fail-fast: false |
| 32 | +# matrix: |
| 33 | +# include: |
| 34 | +# - language: c-cpp |
| 35 | +# build-mode: manual |
| 36 | +# steps: |
| 37 | +# - name: Checkout repository |
| 38 | +# uses: actions/checkout@v4 |
| 39 | + |
| 40 | +# # Initializes the CodeQL tools for scanning. |
| 41 | +# - name: Initialize CodeQL |
| 42 | +# uses: github/codeql-action/init@v3 |
| 43 | +# with: |
| 44 | +# languages: ${{ matrix.language }} |
| 45 | +# build-mode: ${{ matrix.build-mode }} |
| 46 | +# packs: codeql/misra-cpp-coding-standards |
| 47 | + |
| 48 | +# - if: matrix.build-mode == 'manual' |
| 49 | +# shell: bash |
| 50 | +# run: | |
| 51 | +# bazel build //... |
| 52 | +# - name: Perform CodeQL Analysis |
| 53 | +# uses: github/codeql-action/analyze@v3 |
| 54 | +# with: |
| 55 | +# category: "/language:${{matrix.language}}" |
| 56 | +# output: sarif-results.sarif |
| 57 | + |
| 58 | +# - name: Upload Artifact |
| 59 | +# uses: actions/upload-artifact@v4 |
| 60 | +# with: |
| 61 | +# name: sarif-results.sarif |
| 62 | +# path: sarif-results.sarif |
0 commit comments