Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function main({ gitlab, github, refreshTime }) {
const PipelinesService = new Gitlab.Pipelines({
token: gitlab.personalAccessToken
})
try {
await cancelPipelines(PipelinesService)
} catch (_) {
try {
await cancelPipelines(PipelinesService)
} catch (error) {
console.error(error)
}
}
octokit.authenticate({
type: 'token',
token: github.token