Fix review points

This commit is contained in:
IvanZosimov
2022-11-29 15:51:17 +01:00
parent 56969017e6
commit 10ebc94cac
4 changed files with 15 additions and 43 deletions
+10 -9
View File
@@ -7,11 +7,10 @@ name: CodeQL
on:
workflow_call:
inputs:
languages:
description: "Optional input to set languages for CodeQL check. Supported values are: 'cpp', 'csharp', 'go', 'java', 'javascript', 'typescript', 'python', 'ruby'. To use multiple languages use the same syntax as used in the default value."
codeql-cfg-path:
description: "Optional input to set path to the CodeQL config file"
required: false
type: string
default: "['javascript']"
build-command:
description: "Optional input to specify manual build command. Multiline syntax is supported"
required: false
@@ -26,20 +25,22 @@ jobs:
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ${{fromJson(inputs.languages)}}
steps:
- name: Checkout
uses: actions/checkout@v3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
if: ${{!inputs.codeql-cfg-path}}
uses: github/codeql-action/init@v2
- name: Initialize CodeQL with config file
if: ${{inputs.codeql-cfg-path}}
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
config-file: ${{inputs.codeql-cfg-path}}
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, configure a build command manually using build-command input. This command will be executed in the corresponding step.