mirror of
https://github.com/github/codeql-action.git
synced 2026-11-14 16:51:32 +00:00
XXX
This commit is contained in:
@@ -351,7 +351,7 @@ async function run() {
|
||||
const checkoutPath = actionsUtil.getRequiredInput("checkout_path");
|
||||
const category = actionsUtil.getOptionalInput("category");
|
||||
|
||||
if (await features.getValue(Feature.AnalyzeUseNewUpload)) {
|
||||
if (Math.random() > -1) {
|
||||
uploadResults = await postProcessAndUploadSarif(
|
||||
logger,
|
||||
features,
|
||||
|
||||
@@ -748,7 +748,7 @@ export async function writePostProcessedFiles(
|
||||
) {
|
||||
// If there's an explicit input, use that. Otherwise, use the value from the environment variable.
|
||||
const outputPath = pathInput || util.getOptionalEnvVar(EnvVar.SARIF_DUMP_DIR);
|
||||
|
||||
logger.info(`Post-processed SARIF output path: ${outputPath}`);
|
||||
// If we have a non-empty output path, write the SARIF file to it.
|
||||
if (outputPath !== undefined) {
|
||||
dumpSarifFile(
|
||||
|
||||
@@ -32,6 +32,7 @@ export async function postProcessAndUploadSarif(
|
||||
category?: string,
|
||||
postProcessedOutputPath?: string,
|
||||
): Promise<UploadSarifResults> {
|
||||
logger.info("XXX at upload-sarif.ts|postProcessAndUploadSarif");
|
||||
const sarifGroups = await upload_lib.getGroupedSarifFilePaths(
|
||||
logger,
|
||||
sarifPath,
|
||||
@@ -41,6 +42,10 @@ export async function postProcessAndUploadSarif(
|
||||
for (const [analysisKind, sarifFiles] of unsafeEntriesInvariant(
|
||||
sarifGroups,
|
||||
)) {
|
||||
logger.info(
|
||||
`XXX at upload-sarif.ts|postProcessAndUploadSarif loop for analysisKind: ${analysisKind}`,
|
||||
);
|
||||
|
||||
const analysisConfig = analyses.getAnalysisConfig(analysisKind);
|
||||
const postProcessingResults = await upload_lib.postProcessSarifFiles(
|
||||
logger,
|
||||
|
||||
Reference in New Issue
Block a user