diff --git a/.github/workflows/printer-linter-pr-post.yml b/.github/workflows/printer-linter-pr-post.yml index f96a418cad..4d784e7e2c 100644 --- a/.github/workflows/printer-linter-pr-post.yml +++ b/.github/workflows/printer-linter-pr-post.yml @@ -6,7 +6,7 @@ on: types: [completed] jobs: - clang-tidy-results: + printer-linter-result: # Trigger the job only if the previous (insecure) workflow completed successfully if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest @@ -46,7 +46,7 @@ jobs: const assert = require("node:assert").strict; const fs = require("fs"); function exportVar(varName, fileName, regEx) { - const val = fs.readFileSync("${{ github.workspace }}/clang-tidy-result/" + fileName, { + const val = fs.readFileSync("${{ github.workspace }}/printer-linter-result/" + fileName, { encoding: "ascii" }).trimEnd(); assert.ok(regEx.test(val), "Invalid value format for " + varName);