From c4b970d413620f2ef0a5ad592085b59592a87be7 Mon Sep 17 00:00:00 2001 From: Chintan Soni <114917119+chintan-soni-cko@users.noreply.github.com> Date: Tue, 5 Dec 2023 10:03:24 +0000 Subject: [PATCH] PIMOB:2286 - Add codeql integration (#18) * Create codeql.yml * Update codeql.yml updated script for specific path to scan * Update codeql.yml Addressing PR comment --- .github/workflows/codeql.yml | 49 ++++++++++++++++++++++++++++++++++++ 1 file changed, 49 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..821ed4f --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,49 @@ +name: "CodeQL" + +on: + push: + branches: [ "main" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "main", "release/*" ] + paths: + - 'checkout-3ds-sdk-android/**' + - 'checkout-3ds-sdk-ios/**' + schedule: + - cron: '39 10 * * 5' + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + analyze: + name: Code Analyze + runs-on: ubuntu-latest + timeout-minutes: 5 + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'javascript-typescript' ] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{matrix.language}}"