@xcelera/cli 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.js +14 -4
- package/dist/action.js.map +1 -1
- package/dist/cli.js +16 -8
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/action.js
CHANGED
|
@@ -31331,7 +31331,7 @@ async function run() {
|
|
|
31331
31331
|
const response = await requestAudit(url, token, githubContext);
|
|
31332
31332
|
if (!response.success) {
|
|
31333
31333
|
const { message, details } = response.error;
|
|
31334
|
-
coreExports.setFailed('❌
|
|
31334
|
+
coreExports.setFailed('❌ Unable to schedule audit :(');
|
|
31335
31335
|
coreExports.error(message);
|
|
31336
31336
|
if (details) {
|
|
31337
31337
|
coreExports.error(` ↳ ${details}`);
|
|
@@ -31339,10 +31339,20 @@ async function run() {
|
|
|
31339
31339
|
coreExports.setOutput('status', 'failed');
|
|
31340
31340
|
return;
|
|
31341
31341
|
}
|
|
31342
|
-
const { auditId, status } = response.data;
|
|
31343
|
-
coreExports.setOutput('auditId', auditId);
|
|
31344
|
-
coreExports.setOutput('status', status);
|
|
31342
|
+
const { auditId, status, integrations } = response.data;
|
|
31345
31343
|
coreExports.info('✅ Audit scheduled successfully!');
|
|
31344
|
+
coreExports.debug(`Audit ID: ${auditId}`);
|
|
31345
|
+
coreExports.debug(`Status: ${status}`);
|
|
31346
|
+
if (integrations && integrations.github) {
|
|
31347
|
+
coreExports.info('GitHub integration detected');
|
|
31348
|
+
const { installationId, hasRepoAccess } = integrations.github;
|
|
31349
|
+
if (installationId && !hasRepoAccess) {
|
|
31350
|
+
coreExports.warning('The xcelera.dev Github app is installed, but it does not have repository access.');
|
|
31351
|
+
}
|
|
31352
|
+
coreExports.debug(` ↳ installation ID: ${integrations.github.installationId}`);
|
|
31353
|
+
coreExports.debug(` ↳ check run ID: ${integrations.github.checkRunId}`);
|
|
31354
|
+
coreExports.debug(` ↳ installation has repo access: ${integrations.github.hasRepoAccess}`);
|
|
31355
|
+
}
|
|
31346
31356
|
}
|
|
31347
31357
|
catch (error) {
|
|
31348
31358
|
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|