Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Configure the factory with some defaults
const options: CircleCIOptions = {
// Required for all requests
token: CIRCLE_TOKEN, // Set your CircleCi API token
// Git information is required for project/build/etc endpoints
vcs: {
type: GitType.GITHUB, // default: github
owner,
repo
}
};
// Create the api object
this.api = new CircleCI(options);
}