Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(scope) {
super(scope, 'pipeline');
let project = new Project(this, 'deploy-site', {
description: 'Deploys website at scaleyourcloudformation.com',
timeout: Duration.minutes(30),
badge: true,
source: Source.gitHub({
cloneDepth: 1,
owner: 'jeshan',
repo: 'scale-your-cloudformation',
webhookFilters: [
FilterGroup.inEventOf([EventAction.PUSH]).andBranchIs(
'master',
),
],
}),
environment: { buildImage: LinuxBuildImage.STANDARD_2_0 },
buildSpec: BuildSpec.fromObject({
version: '0.2',
phases: {
install: {
'runtime-versions': {
nodejs: '10',
constructor(scope: Construct, id: string, props: SourceProjectProps) {
const { bucket, ...rest } = props
const buildSource = Source.gitHub({
owner: config.sourceRepoOwner,
repo: config.sourceRepoName,
webhook: true,
webhookFilters: [
FilterGroup.inEventOf(EventAction.PUSH).andBranchIs(config.sourceBranch)
]
})
const artifacts = Artifacts.s3({
bucket: props.bucket,
name: SLIC_PIPELINE_SOURCE_ARTIFACT,
includeBuildId: false,
packageZip: true
})
super(scope, id, {