diff --git a/src/buildSummary.ts b/src/buildSummary.ts index 2be1de6..b70fcce 100644 --- a/src/buildSummary.ts +++ b/src/buildSummary.ts @@ -75,6 +75,7 @@ export async function processAndDisplayBuildSummary() { const data = await readJsonFile(filePath); const taskSummaryTableRows = getBuildSummaryTable(data); writeSummary(taskSummaryTableRows); + console.log(process.env.GITHUB_TOKEN); getWorkflowStepNames(repository as string); } catch (error) { console.error('An error occurred while reading the build summary file or adding the build summary table:', error); @@ -93,7 +94,7 @@ export function getWorkflowStepNames(repository: string) { export async function getWorkflowRunJobs(owner: string, repo: string, runId: string) { // Replace with your GitHub personal access token - console.log(process.env.GITHUB_TOKEN); + const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN, });