Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
new PolicyStatement({
actions: [
'codepipeline:GetPipelineExecution',
'codepipeline:StartPipelineExecution'
],
resources: ['*']
})
)
const sourceOutputArtifact = new Artifact()
const sourceAction = new S3SourceAction({
bucket: artifactsBucket,
bucketKey: SLIC_PIPELINE_SOURCE_ARTIFACT,
output: sourceOutputArtifact,
trigger: S3Trigger.POLL,
actionName: 'SLICSource'
})
this.addStage({
stageName: 'Source',
actions: [sourceAction]
})
this.addDeployStage(
StageName.stg,
orchestratorCodeBuildRole,
sourceOutputArtifact
)
this.addTestStage(sourceOutputArtifact)