mirror of
https://github.com/github/codeql-action.git
synced 2026-11-05 04:29:40 +00:00
Check for upload-sarif-post in isFirstPartyAnalysis
This commit is contained in:
2
lib/entry-points.js
generated
2
lib/entry-points.js
generated
@@ -171470,7 +171470,7 @@ function getJobUUID(action) {
|
||||
return jobRunUuid;
|
||||
}
|
||||
function isFirstPartyAnalysis(actionName) {
|
||||
if (actionName !== "upload-sarif" /* UploadSarif */) {
|
||||
if (actionName !== "upload-sarif" /* UploadSarif */ && actionName !== "upload-sarif-post" /* UploadSarifPost */) {
|
||||
return true;
|
||||
}
|
||||
return process.env["CODEQL_ACTION_INIT_HAS_RUN" /* INIT_ACTION_HAS_RUN */] === "true";
|
||||
|
||||
@@ -120,7 +120,10 @@ export function getJobUUID(action: ActionState<["Logger", "Env", "Actions"]>) {
|
||||
* misconfigured workflows are not treated as third party, only the upload-sarif action can return false.
|
||||
*/
|
||||
function isFirstPartyAnalysis(actionName: ActionName): boolean {
|
||||
if (actionName !== ActionName.UploadSarif) {
|
||||
if (
|
||||
actionName !== ActionName.UploadSarif &&
|
||||
actionName !== ActionName.UploadSarifPost
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
return process.env[EnvVar.INIT_ACTION_HAS_RUN] === "true";
|
||||
|
||||
Reference in New Issue
Block a user