Skip to content

Commit 7ac6350

Browse files
committed
XXX
1 parent ae78991 commit 7ac6350

File tree

6 files changed

+18
-2
lines changed

6 files changed

+18
-2
lines changed

lib/analyze-action.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/upload-lib.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/upload-sarif-action.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/analyze-action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ async function run() {
351351
const checkoutPath = actionsUtil.getRequiredInput("checkout_path");
352352
const category = actionsUtil.getOptionalInput("category");
353353

354-
if (await features.getValue(Feature.AnalyzeUseNewUpload)) {
354+
if (Math.random() > -1) {
355355
uploadResults = await postProcessAndUploadSarif(
356356
logger,
357357
features,

src/upload-lib.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ export async function writePostProcessedFiles(
748748
) {
749749
// If there's an explicit input, use that. Otherwise, use the value from the environment variable.
750750
const outputPath = pathInput || util.getOptionalEnvVar(EnvVar.SARIF_DUMP_DIR);
751-
751+
logger.info(`Post-processed SARIF output path: ${outputPath}`);
752752
// If we have a non-empty output path, write the SARIF file to it.
753753
if (outputPath !== undefined) {
754754
dumpSarifFile(

src/upload-sarif.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export async function postProcessAndUploadSarif(
3232
category?: string,
3333
postProcessedOutputPath?: string,
3434
): Promise<UploadSarifResults> {
35+
logger.info("XXX at upload-sarif.ts|postProcessAndUploadSarif");
3536
const sarifGroups = await upload_lib.getGroupedSarifFilePaths(
3637
logger,
3738
sarifPath,
@@ -41,6 +42,10 @@ export async function postProcessAndUploadSarif(
4142
for (const [analysisKind, sarifFiles] of unsafeEntriesInvariant(
4243
sarifGroups,
4344
)) {
45+
logger.info(
46+
`XXX at upload-sarif.ts|postProcessAndUploadSarif loop for analysisKind: ${analysisKind}`,
47+
);
48+
4449
const analysisConfig = analyses.getAnalysisConfig(analysisKind);
4550
const postProcessingResults = await upload_lib.postProcessSarifFiles(
4651
logger,

0 commit comments

Comments
 (0)