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: 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, {
buildSpec: BuildSpec.fromObject({
version: '0.2',
phases: {
install: {
...defaultRuntimes,
commands: ['npm install']
},
build: {
commands: [