refactor: rename disableAnnotations to enableAnnotations.
This commit is contained in:
@ -75,7 +75,7 @@ And ensure that you're using the <a href="https://github.com/Checkmarx/kics-gith
|
||||
|-------------------------------------------|--------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|---------| -------- |--------------------------------------------------------|
|
||||
| enable_comment | true | Enable pull request report comments | Boolean | No | false |
|
||||
| enable_jobs_summary | true | Enable report as jobs summary | Boolean | No | false |
|
||||
| disable_annotations | true | Disable annotations report | Boolean | No | false |
|
||||
| enable_annotations | true | Enable annotations report | Boolean | No | true |
|
||||
| comments_with_queries | true | Add queries in th pull request report comments (available when enable_comments = true) | Boolean | No | false |
|
||||
| excluded_column_for_comments_with_queries | description_id,similarity_id,search_line,search_value | Excluded columns for the comment with queries, accepts a comma separated list | String | No | description_id,similarity_id,search_line,search_value |
|
||||
| path | terraform/main.tf,Dockerfile | paths to a file or directories to scan, comma separated list | String | Yes | N/A |
|
||||
|
@ -6,10 +6,10 @@ inputs:
|
||||
description: "The GITHUB_TOKEN for the current workflow run"
|
||||
required: false
|
||||
default: ${{github.token}}
|
||||
disable_annotations:
|
||||
enable_annotations:
|
||||
required: false
|
||||
default: "false"
|
||||
description: "Disable annotations report"
|
||||
default: "true"
|
||||
description: "Enable annotations report"
|
||||
enable_comments:
|
||||
required: false
|
||||
default: "false"
|
||||
@ -113,7 +113,7 @@ runs:
|
||||
env:
|
||||
INPUT_TOKEN: ${{ inputs.token }}
|
||||
INPUT_OUTPUT_PATH: ${{ inputs.output_path }}
|
||||
INPUT_DISABLE_ANNOTATIONS: ${{ inputs.disable_annotations }}
|
||||
INPUT_ENABLE_ANNOTATIONS: ${{ inputs.enable_annotations }}
|
||||
INPUT_ENABLE_COMMENTS: ${{ inputs.enable_comments }}
|
||||
INPUT_ENABLE_JOBS_SUMMARY: ${{ inputs.enable_jobs_summary }}
|
||||
INPUT_COMMENTS_WITH_QUERIES: ${{ inputs.comments_with_queries }}
|
||||
|
@ -47,7 +47,7 @@ async function main() {
|
||||
|
||||
// Get ENV variables
|
||||
const githubToken = process.env.INPUT_TOKEN;
|
||||
const disableAnnotations = process.env.INPUT_DISABLE_ANNOTATIONS;
|
||||
const enableAnnotations = process.env.INPUT_DISABLE_ANNOTATIONS;
|
||||
const enableComments = process.env.INPUT_ENABLE_COMMENTS;
|
||||
const enableJobsSummary = process.env.INPUT_ENABLE_JOBS_SUMMARY;
|
||||
const commentsWithQueries = process.env.INPUT_COMMENTS_WITH_QUERIES;
|
||||
@ -73,7 +73,7 @@ async function main() {
|
||||
}
|
||||
|
||||
const parsedResults = readJSON(outputPath.resultsJSONFile);
|
||||
if (disableAnnotations.toLocaleLowerCase() === "false") {
|
||||
if (enableAnnotations.toLocaleLowerCase() === "true") {
|
||||
annotator.annotateChangesWithResults(parsedResults);
|
||||
}
|
||||
if (enableComments.toLocaleLowerCase() === "true") {
|
||||
|
Reference in New Issue
Block a user