Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports = async nextVersion => {
if (GITHUB_TOKEN && GITLAB_TOKEN) {
throw new Error('Found both GitLab and GitHub token, please supply one or the other.');
}
if (GITHUB_TOKEN) {
const gitHub = new octokit({
baseUrl: GITHUB_URL,
type: 'token',
token: GITHUB_TOKEN
});
}
if (GITLAB_TOKEN) {
const gitLab = new Projects({
url: GITLAB_URL,
token: GITLAB_TOKEN
});
}
}