Stop using feature-flag support for determining if a feature is active
Using the feature flag mechanism for checking if uploads are enabled was too clunky. I'm moving the change to checking versions directly.
This commit is contained in:
parent
5ff24648ef
commit
f71067bd5f
21 changed files with 136 additions and 145 deletions
5
lib/upload-sarif-action-post.js
generated
5
lib/upload-sarif-action-post.js
generated
|
|
@ -59,7 +59,10 @@ async function runWrapper() {
|
|||
core.warning(`Did not upload debug artifacts because cannot determine the GitHub variant running.`);
|
||||
return;
|
||||
}
|
||||
await (0, logging_1.withGroup)("Uploading combined SARIF debug artifact", () => debugArtifacts.uploadCombinedSarifArtifacts(logger, gitHubVersion.type, true));
|
||||
await (0, logging_1.withGroup)("Uploading combined SARIF debug artifact", () => debugArtifacts.uploadCombinedSarifArtifacts(logger, gitHubVersion.type,
|
||||
// The codeqlVersion is not applicable for uploading non-codeql sarif.
|
||||
// We can assume all versions are safe to upload.
|
||||
undefined));
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue