From 77cda4d75dc540e08aaf9c98db2c2022ada3e117 Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Wed, 30 Nov 2022 11:32:36 +0000 Subject: [PATCH] Add testing environment to submit SARIF after failure PR check --- .github/workflows/__submit-sarif-failure.yml | 2 ++ pr-checks/checks/submit-sarif-failure.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/__submit-sarif-failure.yml b/.github/workflows/__submit-sarif-failure.yml index fe64adb6a..992f85c8b 100644 --- a/.github/workflows/__submit-sarif-failure.yml +++ b/.github/workflows/__submit-sarif-failure.yml @@ -67,4 +67,6 @@ jobs: CODEQL_ACTION_UPLOAD_FAILED_SARIF: true # Upload the failed SARIF file as an integration test of the API endpoint. CODEQL_ACTION_TEST_MODE: false + # Mark telemetry for this workflow so it can be treated separately. + CODEQL_ACTION_TESTING_ENVIRONMENT: codeql-action-pr-checks diff --git a/pr-checks/checks/submit-sarif-failure.yml b/pr-checks/checks/submit-sarif-failure.yml index 74e7392ea..9a5e29986 100644 --- a/pr-checks/checks/submit-sarif-failure.yml +++ b/pr-checks/checks/submit-sarif-failure.yml @@ -11,6 +11,8 @@ env: CODEQL_ACTION_UPLOAD_FAILED_SARIF: true # Upload the failed SARIF file as an integration test of the API endpoint. CODEQL_ACTION_TEST_MODE: false + # Mark telemetry for this workflow so it can be treated separately. + CODEQL_ACTION_TESTING_ENVIRONMENT: codeql-action-pr-checks steps: - uses: actions/checkout@v3