Skip to content

Commit

Permalink
Merge pull request #211 from evelikov/codeql-tidy
Browse files Browse the repository at this point in the history
ci: codeql ignore meson generated files, et al
  • Loading branch information
gregkh authored Nov 16, 2024
2 parents 807d0cc + e928220 commit 79a0b23
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/actions/setup-debian/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ runs:
- name: Install dependencies
shell: bash
run: |
export DEBIAN_FRONTEND=noninteractive
export TZ=Etc/UTC
dpkg --add-architecture i386
apt-get update
apt-get install --yes \
Expand Down
2 changes: 2 additions & 0 deletions .github/actions/setup-ubuntu/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ runs:
- name: Install dependencies
shell: bash
run: |
export DEBIAN_FRONTEND=noninteractive
export TZ=Etc/UTC
dpkg --add-architecture i386
apt-get update
apt-get install --yes \
Expand Down
21 changes: 18 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,26 @@ jobs:

- name: Build
run: |
mkdir build && cd build
meson setup --native-file ../build-dev.ini . ..
meson compile
meson setup --native-file build-dev.ini build
meson compile -C build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@662472033e021d55d94146f66f6058822b0b39fd # v3.27.0
with:
category: "/language:cpp"
upload: false
output: sarif-results

- name: Filter out meson-internal test files
uses: advanced-security/filter-sarif@f3b8118a9349d88f7b1c0c488476411145b6270d # v1.0.1
with:
patterns: |
-build/meson-private/**/testfile.c
input: sarif-results/cpp.sarif
output: sarif-results/cpp.sarif

- name: Upload CodeQL results to code scanning
uses: github/codeql-action/upload-sarif@662472033e021d55d94146f66f6058822b0b39fd # v3.27.0
with:
sarif_file: sarif-results/cpp.sarif
category: "/language:cpp"

0 comments on commit 79a0b23

Please sign in to comment.