Updated CodeQL to use latest version (#21436)
* Update CodeQL to latest version
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9a857b47b4
Коммит
9e72ca1867
14
.github/codeql/codeql-config.yml
поставляемый
Обычный файл
14
.github/codeql/codeql-config.yml
поставляемый
Обычный файл
@@ -0,0 +1,14 @@
|
|||||||
|
name: "CodeQL config"
|
||||||
|
|
||||||
|
query-filters:
|
||||||
|
- exclude:
|
||||||
|
problem.severity:
|
||||||
|
- warning
|
||||||
|
- recommendation
|
||||||
|
- exclude:
|
||||||
|
id: go/log-injection
|
||||||
|
|
||||||
|
paths-ignore:
|
||||||
|
- templates
|
||||||
|
- tests
|
||||||
|
- 'api4/*_local.go'
|
||||||
21
.github/workflows/codeql-analysis.yml
поставляемый
21
.github/workflows/codeql-analysis.yml
поставляемый
@@ -6,7 +6,7 @@ on:
|
|||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '30 5,17 * * *'
|
- cron: '30 5,17 * * *'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
@@ -20,17 +20,24 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
language: [ 'go', 'javascript' ]
|
language: [ 'go' ]
|
||||||
|
|
||||||
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 }}
|
||||||
debug: true
|
debug: false
|
||||||
|
config-file: ./.github/codeql/codeql-config.yml
|
||||||
|
|
||||||
|
# Autobuild attempts to build any compiled languages
|
||||||
- name: Autobuild
|
- name: Autobuild
|
||||||
uses: github/codeql-action/autobuild@v1
|
uses: github/codeql-action/autobuild@v2
|
||||||
|
|
||||||
|
# Perform Analysis
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v1
|
uses: github/codeql-action/analyze@v2
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user