mirror of
https://github.com/github/codeql-action.git
synced 2026-04-27 01:08:46 +00:00
Report registry types that are configured for CodeQL in start-proxy telemetry
This commit is contained in:
Generated
+11
-3
@@ -95752,7 +95752,7 @@ function generateCertificateAuthority() {
|
||||
const key = import_node_forge.pki.privateKeyToPem(keys.privateKey);
|
||||
return { cert: pem, key };
|
||||
}
|
||||
async function sendSuccessStatusReport(startedAt, logger) {
|
||||
async function sendSuccessStatusReport(startedAt, registry_types, logger) {
|
||||
const statusReportBase = await createStatusReportBase(
|
||||
"start-proxy" /* StartProxy */,
|
||||
"success",
|
||||
@@ -95762,7 +95762,11 @@ async function sendSuccessStatusReport(startedAt, logger) {
|
||||
logger
|
||||
);
|
||||
if (statusReportBase !== void 0) {
|
||||
await sendStatusReport(statusReportBase);
|
||||
const statusReport = {
|
||||
...statusReportBase,
|
||||
registry_types: registry_types.join(",")
|
||||
};
|
||||
await sendStatusReport(statusReport);
|
||||
}
|
||||
}
|
||||
async function runWrapper() {
|
||||
@@ -95794,7 +95798,11 @@ async function runWrapper() {
|
||||
};
|
||||
const proxyBin = await getProxyBinaryPath(logger);
|
||||
await startProxy(proxyBin, proxyConfig, proxyLogFilePath, logger);
|
||||
await sendSuccessStatusReport(startedAt, logger);
|
||||
await sendSuccessStatusReport(
|
||||
startedAt,
|
||||
proxyConfig.all_credentials.map((c) => c.type),
|
||||
logger
|
||||
);
|
||||
} catch (unwrappedError) {
|
||||
const error2 = wrapError(unwrappedError);
|
||||
core11.setFailed(`start-proxy action failed: ${error2.message}`);
|
||||
|
||||
Reference in New Issue
Block a user