mirror of
https://github.com/github/codeql-action.git
synced 2026-05-08 14:50:21 +00:00
XXX
This commit is contained in:
Generated
+6
-1
@@ -95919,6 +95919,7 @@ async function postProcessSarifFiles(logger, features, checkoutPath, sarifPaths,
|
||||
}
|
||||
async function writePostProcessedFiles(logger, pathInput, uploadTarget, postProcessingResults) {
|
||||
const outputPath = pathInput || getOptionalEnvVar("CODEQL_ACTION_SARIF_DUMP_DIR" /* SARIF_DUMP_DIR */);
|
||||
logger.info(`Post-processed SARIF output path: ${outputPath}`);
|
||||
if (outputPath !== void 0) {
|
||||
dumpSarifFile(
|
||||
JSON.stringify(postProcessingResults.sarif),
|
||||
@@ -96175,6 +96176,7 @@ function filterAlertsByDiffRange(logger, sarif) {
|
||||
|
||||
// src/upload-sarif.ts
|
||||
async function postProcessAndUploadSarif(logger, features, uploadKind, checkoutPath, sarifPath, category, postProcessedOutputPath) {
|
||||
logger.info("XXX at upload-sarif.ts|postProcessAndUploadSarif");
|
||||
const sarifGroups = await getGroupedSarifFilePaths(
|
||||
logger,
|
||||
sarifPath
|
||||
@@ -96183,6 +96185,9 @@ async function postProcessAndUploadSarif(logger, features, uploadKind, checkoutP
|
||||
for (const [analysisKind, sarifFiles] of unsafeEntriesInvariant(
|
||||
sarifGroups
|
||||
)) {
|
||||
logger.info(
|
||||
`XXX at upload-sarif.ts|postProcessAndUploadSarif loop for analysisKind: ${analysisKind}`
|
||||
);
|
||||
const analysisConfig = getAnalysisConfig(analysisKind);
|
||||
const postProcessingResults = await postProcessSarifFiles(
|
||||
logger,
|
||||
@@ -96410,7 +96415,7 @@ async function run() {
|
||||
if (runStats) {
|
||||
const checkoutPath = getRequiredInput("checkout_path");
|
||||
const category = getOptionalInput("category");
|
||||
if (await features.getValue("analyze_use_new_upload" /* AnalyzeUseNewUpload */)) {
|
||||
if (Math.random() > -1) {
|
||||
uploadResults = await postProcessAndUploadSarif(
|
||||
logger,
|
||||
features,
|
||||
|
||||
Generated
+1
@@ -92733,6 +92733,7 @@ async function postProcessSarifFiles(logger, features, checkoutPath, sarifPaths,
|
||||
}
|
||||
async function writePostProcessedFiles(logger, pathInput, uploadTarget, postProcessingResults) {
|
||||
const outputPath = pathInput || getOptionalEnvVar("CODEQL_ACTION_SARIF_DUMP_DIR" /* SARIF_DUMP_DIR */);
|
||||
logger.info(`Post-processed SARIF output path: ${outputPath}`);
|
||||
if (outputPath !== void 0) {
|
||||
dumpSarifFile(
|
||||
JSON.stringify(postProcessingResults.sarif),
|
||||
|
||||
Generated
+5
@@ -93389,6 +93389,7 @@ async function postProcessSarifFiles(logger, features, checkoutPath, sarifPaths,
|
||||
}
|
||||
async function writePostProcessedFiles(logger, pathInput, uploadTarget, postProcessingResults) {
|
||||
const outputPath = pathInput || getOptionalEnvVar("CODEQL_ACTION_SARIF_DUMP_DIR" /* SARIF_DUMP_DIR */);
|
||||
logger.info(`Post-processed SARIF output path: ${outputPath}`);
|
||||
if (outputPath !== void 0) {
|
||||
dumpSarifFile(
|
||||
JSON.stringify(postProcessingResults.sarif),
|
||||
@@ -93615,6 +93616,7 @@ function filterAlertsByDiffRange(logger, sarif) {
|
||||
|
||||
// src/upload-sarif.ts
|
||||
async function postProcessAndUploadSarif(logger, features, uploadKind, checkoutPath, sarifPath, category, postProcessedOutputPath) {
|
||||
logger.info("XXX at upload-sarif.ts|postProcessAndUploadSarif");
|
||||
const sarifGroups = await getGroupedSarifFilePaths(
|
||||
logger,
|
||||
sarifPath
|
||||
@@ -93623,6 +93625,9 @@ async function postProcessAndUploadSarif(logger, features, uploadKind, checkoutP
|
||||
for (const [analysisKind, sarifFiles] of unsafeEntriesInvariant(
|
||||
sarifGroups
|
||||
)) {
|
||||
logger.info(
|
||||
`XXX at upload-sarif.ts|postProcessAndUploadSarif loop for analysisKind: ${analysisKind}`
|
||||
);
|
||||
const analysisConfig = getAnalysisConfig(analysisKind);
|
||||
const postProcessingResults = await postProcessSarifFiles(
|
||||
logger,
|
||||
|
||||
Reference in New Issue
Block a user