Updated CodeQL to latest version (#2292)

* Created CodeQL config

* Upgraded CodeQL to latest version
This commit is contained in:
Rohitesh Gupta 2022-10-20 18:43:07 +05:30 committed by GitHub
parent cf647ce3e9
commit 48869a654f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 13 deletions

11
.github/codeql/codeql-config.yml vendored Normal file
View file

@ -0,0 +1,11 @@
name: "CodeQL config"
query-filters:
- exclude:
problem.severity:
- warning
- recommendation
paths-ignore:
- e2e
- '**/*.test.*'

View file

@ -7,10 +7,15 @@ on:
# The branches below must be a subset of the branches above # The branches below must be a subset of the branches above
branches: [ master ] branches: [ master ]
schedule: schedule:
- cron: '00 00 * * 0' - cron: '0 0 * * 0'
permissions:
contents: read
jobs: jobs:
analyze: analyze:
permissions:
security-events: write
name: Analyze name: Analyze
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -18,26 +23,20 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
language: [ 'javascript' ] language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v1 uses: github/codeql-action/init@v2
with: with:
languages: ${{ matrix.language }} languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file. config-file: ./.github/codeql/codeql-config.yml
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # Autobuild attempts to build any compiled languages
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild - name: Autobuild
uses: github/codeql-action/autobuild@v1 uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1 uses: github/codeql-action/analyze@v2