From 67e423ccfef39f89c52ac02e042a5e0e9a0402ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Reigota?= Date: Mon, 12 Dec 2022 11:52:33 +0000 Subject: [PATCH] fix(annotations): wrong annotations env variable in js --- .github/workflows/test_action.yaml | 1 + src/main.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_action.yaml b/.github/workflows/test_action.yaml index 638e8ca..ba4465b 100644 --- a/.github/workflows/test_action.yaml +++ b/.github/workflows/test_action.yaml @@ -20,6 +20,7 @@ jobs: output_formats: sarif ignore_on_exit: results enable_comments: true + enable_annotations: true enable_jobs_summary: true comments_with_queries: true excluded_column_for_comments_with_queries: "description_id,similarity_id,search_line,search_value,cis_description_id,cis_description_title,cis_description_text,cloud_provider" diff --git a/src/main.js b/src/main.js index 7569206..ef5fb35 100644 --- a/src/main.js +++ b/src/main.js @@ -47,7 +47,7 @@ async function main() { // Get ENV variables const githubToken = process.env.INPUT_TOKEN; - let enableAnnotations = process.env.INPUT_DISABLE_ANNOTATIONS; + let enableAnnotations = process.env.INPUT_ENABLE_ANNOTATIONS; let enableComments = process.env.INPUT_ENABLE_COMMENTS; let enableJobsSummary = process.env.INPUT_ENABLE_JOBS_SUMMARY; const commentsWithQueries = process.env.INPUT_COMMENTS_WITH_QUERIES;