From 4aac5191473fac66e49a70d015e6e1c630e0b2dd Mon Sep 17 00:00:00 2001 From: Umar Mir Date: Wed, 27 Aug 2025 20:55:09 +0500 Subject: [PATCH 1/2] Add CodeQL scan workflow --- .github/workflows/codeql.yml | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 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 0000000000..fc0e1446bc --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,41 @@ +name: "CodeQL" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + analyze: + name: Analyze code + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'python' ] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + + - name: Install dependencies + run: pip install -r requirements/dev.txt + + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 \ No newline at end of file From 6556623402237cbe465617e83c25e25794f905f6 Mon Sep 17 00:00:00 2001 From: Umar Mir Date: Wed, 27 Aug 2025 20:58:39 +0500 Subject: [PATCH 2/2] new codeql --- .github/workflows/codeql.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index fc0e1446bc..763de2fd0b 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -2,9 +2,9 @@ name: "CodeQL" on: push: - branches: [ "main" ] + branches: [main ,insecure-code ] pull_request: - branches: [ "main" ] + branches: [ main ,insecure-code ] jobs: analyze: @@ -24,14 +24,6 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.11" - - - name: Install dependencies - run: pip install -r requirements/dev.txt - - name: Initialize CodeQL uses: github/codeql-action/init@v2 with: