Skip to content
Permalink
v2.4.1
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
36 lines (31 sloc) 909 Bytes
#!/usr/bin/env node
import {Command} from 'commander'
import {Context} from '@actions/github/lib/context'
import {run} from './main'
const cli = new Command()
cli
.version('0.0.1')
.description('Run an update against the specified Dependabot API service')
.requiredOption('-j, --job-id <id>', 'Job ID is required.')
.requiredOption('-t, --job-token <token>', 'Job token required.')
.requiredOption(
'-c, --credentials-token <token>',
'Job credentials token is required.'
)
.requiredOption(
'-d, --dependabot-api-url <url>',
'A URL for Dependabot API is required.'
)
.option(
'-d, --dependabot-api-docker-url <url>',
'A URL to be used to access the API from Dependabot containers.'
)
.parse(process.argv)
const options = cli.opts()
const ctx = new Context()
ctx.eventName = 'dynamic'
ctx.actor = 'dependabot[bot]'
ctx.payload = {
inputs: options
}
run(ctx)