Add workload_run_attempt to analysis upload (#1658)
* Refactor status report upload logic Previously we had duplicated the logic to check `GITHUB_RUN_ID`. We now call the `getWorkflowRunID()` method for the status report upload method, and move the logic for the run attempt to `getWorkflowRunAttempt()` * Add `workflow_run_attempt` to analysis payload * Stop allowing `undefined` run IDs and attempts Because we already throw an error if the ID or attempt aren't numbers, we don't have to allow `undefined` values into the payload.
This commit is contained in:
parent
a9648ea7c6
commit
da583b07a7
12 changed files with 85 additions and 42 deletions
|
|
@ -37,7 +37,8 @@ test("validate correct payload used for push, PR merge commit, and PR head", asy
|
|||
"key",
|
||||
undefined,
|
||||
"",
|
||||
undefined,
|
||||
1234,
|
||||
1,
|
||||
"/opt/src",
|
||||
undefined,
|
||||
["CodeQL", "eslint"],
|
||||
|
|
@ -59,7 +60,8 @@ test("validate correct payload used for push, PR merge commit, and PR head", asy
|
|||
"key",
|
||||
undefined,
|
||||
"",
|
||||
undefined,
|
||||
1234,
|
||||
1,
|
||||
"/opt/src",
|
||||
undefined,
|
||||
["CodeQL", "eslint"],
|
||||
|
|
@ -75,7 +77,8 @@ test("validate correct payload used for push, PR merge commit, and PR head", asy
|
|||
"key",
|
||||
undefined,
|
||||
"",
|
||||
undefined,
|
||||
1234,
|
||||
1,
|
||||
"/opt/src",
|
||||
undefined,
|
||||
["CodeQL", "eslint"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue