| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Nice!
Sorry, something went wrong.
| HAS_WARNED_ABOUT_DISK_SPACE = "CODEQL_ACTION_HAS_WARNED_ABOUT_DISK_SPACE", | ||
|
|
||
| /** Whether the init action has been run. */ | ||
| INIT_ACTION_HAS_RUN = "CODEQL_INIT_ACTION_HAS_RUN", |
There was a problem hiding this comment.
Minor: Doesn't read as well but it's nice to have everything the Action defines prefixed by CODEQL_ACTION_
| INIT_ACTION_HAS_RUN = "CODEQL_INIT_ACTION_HAS_RUN", | |
| INIT_ACTION_HAS_RUN = "CODEQL_ACTION_INIT_HAS_RUN", |
Sorry, something went wrong.
| process.env["CODEQL_ACTION_ANALYSIS_KEY"] = "analysis-key"; | ||
| process.env["GITHUB_REF"] = "refs/heads/main"; | ||
| process.env["GITHUB_REPOSITORY"] = "octocat/HelloWorld"; | ||
| process.env["GITHUB_RUN_ATTEMPT"] = "2"; | ||
| process.env["GITHUB_RUN_ID"] = "100"; | ||
| process.env["GITHUB_SHA"] = "a".repeat(40); | ||
| process.env["ImageVersion"] = "2023.05.19.1"; | ||
| process.env["RUNNER_OS"] = "macOS"; | ||
| process.env["RUNNER_TEMP"] = tmpDir; | ||
|
|
||
| const getRequiredInput = sinon.stub(actionsUtil, "getRequiredInput"); | ||
| getRequiredInput.withArgs("matrix").resolves("input/matrix"); |
There was a problem hiding this comment.
Minor: consider creating a function for all of this as it's shared across a few tests
Sorry, something went wrong.
There was a problem hiding this comment.
Looks great to me ✨ thanks for the care in thinking about misconfigured workflows!
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
In order to define more granular metrics and define more appropriate SLOs we add a new field to the status reports uploaded by the CodeQL Action.
This field first_party_analysis is based on whether the init action has been used, which is only used for first party analysis. When a SARIF file has been generated by other means and submitted using the upload action, this is considered to be a third party analysis and will be treated differently when calculating SLOs. To ensure misconfigured workflows are not treated as third party, only the upload-sarif action can submit status reports that are not first-party.
See back-linked internal issue for example status reports, showing these changes in action.
Merge / deployment checklist