Skip to content

Commit 6b3d285

Browse files
committed
updating
1 parent 4fe5eb4 commit 6b3d285

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

terraform/pipelines/modules/codepipeline/buildspecs/ossdepscan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ phases:
1515
build:
1616
commands:
1717
- echo "Scanning dependencies for vulnerabilities with Trivy..."
18-
- trivy fs --scanners vuln --severity HIGH,CRITICAL .
18+
- ./bin/trivy fs --scanners vuln --severity HIGH,CRITICAL .
1919
post_build:
2020
commands:
2121
- echo "Dependency scanning completed."

terraform/pipelines/modules/codepipeline/main.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,14 @@ resource "aws_iam_policy" "codebuild_policy" {
148148
"${var.s3_bucket_arn}/*"
149149
]
150150
},
151+
{
152+
Effect = "Allow"
153+
Action = [
154+
"codebuild:CreateReportGroup",
155+
"codebuild:CreateReport"
156+
]
157+
Resource = "*"
158+
},
151159
{
152160
Effect = "Allow"
153161
Action = [

0 commit comments

Comments
 (0)