Skip to content

Commit

Permalink
add token to config
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjennings authored Oct 1, 2024
1 parent aa3ae26 commit f9c232f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class Config {
repo: github.context.repo.repo,
issueNumber: github.context.issue.number,
branch: github.context.ref,
token: github.token
};
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const waitFor = (ms) => new Promise((r) => setTimeout(r, ms));
console.log(chalk.green("TestDriver:"), '"Looking into it..."');
console.log(chalk.green("TestDriver:"), '"I can help ya test that!"');

const personalAccessToken = process.env.GITHUB_TOKEN;
const personalAccessToken = process.env.GITHUB_TOKEN || config.githubContext.token;

if (personalAccessToken.length) {
console.log(chalk.green("TestDriver:"), '"Access Token Supplied..."');
Expand Down

0 comments on commit f9c232f

Please sign in to comment.