Skip to content

Commit

Permalink
PIMOB:2286 - Add codeql integration (#18)
Browse files Browse the repository at this point in the history
* Create codeql.yml

* Update codeql.yml

updated script for specific path to scan

* Update codeql.yml

Addressing PR comment
  • Loading branch information
chintan-soni-cko authored Dec 5, 2023
1 parent b32e816 commit c4b970d
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -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}}"

0 comments on commit c4b970d

Please sign in to comment.