Skip to content

Commit db7698f

Browse files
author
Mickaël VILLERS
committed
refactor: rename disableAnnotations to enableAnnotations.
1 parent 20e3c7b commit db7698f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ And ensure that you're using the <a href="https://github.com/Checkmarx/kics-gith
7575
|-------------------------------------------|--------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|---------| -------- |--------------------------------------------------------|
7676
| enable_comment | true | Enable pull request report comments | Boolean | No | false |
7777
| enable_jobs_summary | true | Enable report as jobs summary | Boolean | No | false |
78-
| disable_annotations | true | Disable annotations report | Boolean | No | false |
78+
| enable_annotations | true | Enable annotations report | Boolean | No | true |
7979
| comments_with_queries | true | Add queries in th pull request report comments (available when enable_comments = true) | Boolean | No | false |
8080
| 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 |
8181
| path | terraform/main.tf,Dockerfile | paths to a file or directories to scan, comma separated list | String | Yes | N/A |

action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ inputs:
66
description: "The GITHUB_TOKEN for the current workflow run"
77
required: false
88
default: ${{github.token}}
9-
disable_annotations:
9+
enable_annotations:
1010
required: false
11-
default: "false"
12-
description: "Disable annotations report"
11+
default: "true"
12+
description: "Enable annotations report"
1313
enable_comments:
1414
required: false
1515
default: "false"
@@ -113,7 +113,7 @@ runs:
113113
env:
114114
INPUT_TOKEN: ${{ inputs.token }}
115115
INPUT_OUTPUT_PATH: ${{ inputs.output_path }}
116-
INPUT_DISABLE_ANNOTATIONS: ${{ inputs.disable_annotations }}
116+
INPUT_ENABLE_ANNOTATIONS: ${{ inputs.enable_annotations }}
117117
INPUT_ENABLE_COMMENTS: ${{ inputs.enable_comments }}
118118
INPUT_ENABLE_JOBS_SUMMARY: ${{ inputs.enable_jobs_summary }}
119119
INPUT_COMMENTS_WITH_QUERIES: ${{ inputs.comments_with_queries }}

src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async function main() {
4747

4848
// Get ENV variables
4949
const githubToken = process.env.INPUT_TOKEN;
50-
const disableAnnotations = process.env.INPUT_DISABLE_ANNOTATIONS;
50+
const enableAnnotations = process.env.INPUT_DISABLE_ANNOTATIONS;
5151
const enableComments = process.env.INPUT_ENABLE_COMMENTS;
5252
const enableJobsSummary = process.env.INPUT_ENABLE_JOBS_SUMMARY;
5353
const commentsWithQueries = process.env.INPUT_COMMENTS_WITH_QUERIES;
@@ -73,7 +73,7 @@ async function main() {
7373
}
7474

7575
const parsedResults = readJSON(outputPath.resultsJSONFile);
76-
if (disableAnnotations.toLocaleLowerCase() === "false") {
76+
if (enableAnnotations.toLocaleLowerCase() === "true") {
7777
annotator.annotateChangesWithResults(parsedResults);
7878
}
7979
if (enableComments.toLocaleLowerCase() === "true") {

0 commit comments

Comments
 (0)