From a6b1908ec056ac5a6681a3a98553c26f7db41f18 Mon Sep 17 00:00:00 2001 From: Aptivi CEO Date: Wed, 11 Sep 2024 14:10:27 +0300 Subject: [PATCH] add - sec - Added CodeQL analysis --- We've added CodeQL analysis workflow so that we can control it anytime. --- Type: add Breaking: False Doc Required: False Backport Required: False Part: 1/1 --- .github/workflows/codeql.yml | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..b58eb61 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,40 @@ +name: "CodeQL Analysis" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: '06 12 * * *' + +jobs: + analyze: + name: Analyze + runs-on: 'ubuntu-latest' + timeout-minutes: 360 + permissions: + actions: read + contents: read + security-events: write + strategy: + fail-fast: false + matrix: + language: [ 'csharp' ] + + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + - name: Build + run: | + chmod +x ./tools/build.sh + cd tools && ./build.sh && cd - + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}"