From e5a688923ffb54169b8329b094bef43963efcf54 Mon Sep 17 00:00:00 2001 From: Chintan Soni <114917119+chintan-soni-cko@users.noreply.github.com> Date: Fri, 1 Dec 2023 17:08:22 +0000 Subject: [PATCH 1/3] Create codeql.yml --- .github/workflows/codeql.yml | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 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..ac02dc1 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,42 @@ +name: "CodeQL" + +on: + push: + branches: [ "main" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "main", "release/*" ] + schedule: + - cron: '39 10 * * 5' + +jobs: + analyze: + name: Code Analyze + runs-on: ubuntu-latest + timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} + 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}}" From 9c6ad467e2550d7ee385f5f508ac79da35ab7d10 Mon Sep 17 00:00:00 2001 From: Chintan Soni <114917119+chintan-soni-cko@users.noreply.github.com> Date: Fri, 1 Dec 2023 17:16:40 +0000 Subject: [PATCH 2/3] Update codeql.yml updated script for specific path to scan --- .github/workflows/codeql.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index ac02dc1..87a84ec 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -6,9 +6,16 @@ on: 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 From c133fc6b4e461114eb7ea7faba752463c5aed0c1 Mon Sep 17 00:00:00 2001 From: Chintan Soni <114917119+chintan-soni-cko@users.noreply.github.com> Date: Fri, 1 Dec 2023 17:32:35 +0000 Subject: [PATCH 3/3] Update codeql.yml Addressing PR comment --- .github/workflows/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 87a84ec..821ed4f 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -20,7 +20,7 @@ jobs: analyze: name: Code Analyze runs-on: ubuntu-latest - timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} + timeout-minutes: 5 permissions: actions: read contents: read