Skip to content

Commit 42a3b94

Browse files
committed
Add CODEQL_ACTION_ prefix to JOB_RUN_UUID
1 parent 2e25107 commit 42a3b94

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎.github/workflows/__job-run-uuid-sarif.yml‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎lib/entry-points.js‎

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pr-checks/checks/job-run-uuid-sarif.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ steps:
2121
run: |
2222
cd "$RUNNER_TEMP/results"
2323
actual=$(jq -r '.runs[0].properties.jobRunUuid' javascript.sarif)
24-
if [[ "$actual" != "$JOB_RUN_UUID" ]]; then
25-
echo "Expected SARIF output to contain job run UUID '$JOB_RUN_UUID', but found '$actual'."
24+
if [[ "$actual" != "$CODEQL_ACTION_JOB_RUN_UUID" ]]; then
25+
echo "Expected SARIF output to contain job run UUID '$CODEQL_ACTION_JOB_RUN_UUID', but found '$actual'."
2626
exit 1
2727
else
2828
echo "Found job run UUID '$actual'."

‎src/environment.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export enum EnvVar {
8888
LOG_VERSION_DEPRECATION = "CODEQL_ACTION_DID_LOG_VERSION_DEPRECATION",
8989

9090
/** UUID representing the current job run. */
91-
JOB_RUN_UUID = "JOB_RUN_UUID",
91+
JOB_RUN_UUID = "CODEQL_ACTION_JOB_RUN_UUID",
9292

9393
/** Status for the entire job, submitted to the status report in `init-post` */
9494
JOB_STATUS = "CODEQL_ACTION_JOB_STATUS",

0 commit comments

Comments
 (0)