Skip to content

Commit

Permalink
p2
Browse files Browse the repository at this point in the history
  • Loading branch information
snnn committed Sep 26, 2024
1 parent 6b30b94 commit d8421d5
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: "CodeQL config"
queries:
- uses: security-extended
- uses: security-and-quality
paths-ignore:
- tests
- lib
- build
40 changes: 40 additions & 0 deletions .github/workflows/linux_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,61 @@ on:
branches:
- main
- rel-*
- snnn/*
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Linux_arm64_gcc_release:
runs-on: ["self-hosted", "1ES.Pool=mlas-linux-ARM64-CPU"]
steps:
- uses: actions/checkout@v4
- run: |
set -e -x
rm -rf build
cmake --workflow --preset linux_gcc_release_workflow
Linux_x64_gcc_ubuntu24_release:
runs-on: ubuntu-24.04
permissions:
actions: read
contents: read
security-events: write
steps:
- uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
config-file: ./.github/codeql/codeql-config.yml
languages: 'cpp'
- run: |
set -e -x
rm -rf build
cmake --workflow --preset linux_gcc_release_workflow
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:cpp"
output: sarif-results

- name: filter-sarif
uses: advanced-security/filter-sarif@v1
with:
patterns: |
+**/*.cc
+**/*.h
-tests/**/*.*
-build/**/*.*
input: sarif-results/cpp.sarif
output: sarif-results/cpp.sarif
- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: sarif-results/cpp.sarif

Linux_x64_gcc_ubuntu22_release:
runs-on: ubuntu-22.04
steps:
Expand Down

0 comments on commit d8421d5

Please sign in to comment.