Add some more comments

This commit is contained in:
Michael B. Gale 2025-06-24 13:59:46 +01:00
parent 9b9286a835
commit 86f47e8b74
No known key found for this signature in database
GPG key ID: FF5E2765BD00628F
3 changed files with 6 additions and 1 deletions

2
lib/upload-lib.js generated
View file

@ -419,12 +419,14 @@ function buildPayload(commitOid, ref, analysisKey, analysisName, zippedSarif, wo
}
return payloadObj;
}
// Represents the Code Scanning upload target.
exports.CodeScanningTarget = {
name: "code scanning",
target: SARIF_UPLOAD_TARGET.CODE_SCANNING_UPLOAD_TARGET,
sarifFilter: exports.defaultIsSarif,
sentinelPrefix: "CODEQL_UPLOAD_SARIF_",
};
// Represents the Code Quality upload target.
exports.CodeQualityTarget = {
name: "code quality",
target: SARIF_UPLOAD_TARGET.CODE_QUALITY_UPLOAD_TARGET,

File diff suppressed because one or more lines are too long

View file

@ -581,6 +581,7 @@ export function buildPayload(
return payloadObj;
}
// Represents configurations for different services that we can upload SARIF to.
export interface UploadTarget {
name: string;
target: SARIF_UPLOAD_TARGET;
@ -588,6 +589,7 @@ export interface UploadTarget {
sentinelPrefix: string;
}
// Represents the Code Scanning upload target.
export const CodeScanningTarget: UploadTarget = {
name: "code scanning",
target: SARIF_UPLOAD_TARGET.CODE_SCANNING_UPLOAD_TARGET,
@ -595,6 +597,7 @@ export const CodeScanningTarget: UploadTarget = {
sentinelPrefix: "CODEQL_UPLOAD_SARIF_",
};
// Represents the Code Quality upload target.
export const CodeQualityTarget: UploadTarget = {
name: "code quality",
target: SARIF_UPLOAD_TARGET.CODE_QUALITY_UPLOAD_TARGET,