Skip to content

Commit 6b38b9b

Browse files
fix: run_codeguru_security.shをcodeguru.shに変更
- 1-product-overview.md: スクリプト名をrun_codeguru_security.shからcodeguru.shに変更 - sast.yml: スクリプト名をrun_codeguru_security.shからcodeguru.shに変更 - codeguru.sh: エラーメッセージの例を修正 - codepipeline-setup.md: スクリプト名をrun_codeguru_security.shからcodeguru.shに変更
1 parent 80beae8 commit 6b38b9b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.kiro/steering/1-product-overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ cache:
138138
- 'node_modules/**/*'
139139
```
140140
141-
run_codeguru_security.shの内容は以下の通り。
141+
codeguru.shの内容は以下の通り。
142142
143143
```bash
144144
#!/bin/bash
@@ -157,7 +157,7 @@ die() { echo "$*" 1>&2 ; exit 1; }
157157

158158
zipName="/tmp/$(date +%s).zip"
159159

160-
[ "$#" -ge 2 ] || die "2 arguments required, $# provided, pass <scanName>, <folder> and <region> example: ./run_codeguru_security.sh MyScan upload_folder/zipFile ap-northeast-1"
160+
[ "$#" -ge 2 ] || die "2 arguments required, $# provided, pass <scanName>, <folder> and <region> example: ./codeguru.sh MyScan upload_folder/zipFile ap-northeast-1"
161161

162162
if [ ! -d "$fileOrFolder" ] && [ ! -f "$fileOrFolder" ]; then
163163
die "file or folder doesn't exist"
@@ -254,7 +254,7 @@ phases:
254254
- SCAN_NAME="${SERVICE_NAME}-${STAGE_NAME}-$(date +%s)"
255255
- echo "Scan name:$SCAN_NAME"
256256
- zip -r /tmp/source-code.zip . -x "*.git*" "node_modules/*" "*.pyc" "__pycache__/*" ".venv/*"
257-
- bash ./cicd/scripts/run_codeguru_security.sh $SCAN_NAME /tmp/source-code.zip $AWS_DEFAULT_REGION
257+
- bash ./cicd/scripts/codeguru.sh $SCAN_NAME /tmp/source-code.zip $AWS_DEFAULT_REGION
258258
- echo "SAST scan completed"
259259

260260
post_build:

cicd/buildspecs/sast.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ phases:
1616
- SCAN_NAME="${SERVICE_NAME}-${STAGE_NAME}-$(date +%s)"
1717
- echo "Scan name:$SCAN_NAME"
1818
- zip -r /tmp/source-code.zip . -x "*.git*" "node_modules/*" "*.pyc" "__pycache__/*" ".venv/*"
19-
- bash ./cicd/scripts/run_codeguru_security.sh $SCAN_NAME /tmp/source-code.zip $AWS_DEFAULT_REGION
19+
- bash ./cicd/scripts/codeguru.sh $SCAN_NAME /tmp/source-code.zip $AWS_DEFAULT_REGION
2020
- echo "SAST scan completed"
2121

2222
post_build:

cicd/scripts/codeguru.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ die() { echo "$*" 1>&2 ; exit 1; }
1414

1515
zipName="/tmp/$(date +%s).zip"
1616

17-
[ "$#" -ge 2 ] || die "2 arguments required, $# provided, pass <scanName>, <folder> and <region> example: ./run_codeguru_security.sh MyScan upload_folder/zipFile us-east-1"
17+
[ "$#" -ge 2 ] || die "2 arguments required, $# provided, pass <scanName>, <folder> and <region> example: ./codeguru.sh MyScan upload_folder/zipFile us-east-1"
1818

1919
if [ ! -d "$fileOrFolder" ] && [ ! -f "$fileOrFolder" ]; then
2020
die "file or folder doesn't exist"

docs/codepipeline-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ phases:
560560
- SCAN_NAME="${SERVICE_NAME}-${STAGE_NAME}-sca-$(date +%s)"
561561
- echo "Scan name: $SCAN_NAME"
562562
- zip -r /tmp/source-code.zip . -x "*.git*" "node_modules/*" "*.pyc" "__pycache__/*" ".venv/*"
563-
- bash ./cicd/scripts/run_codeguru_security.sh $SCAN_NAME /tmp/source-code.zip $AWS_DEFAULT_REGION
563+
- bash ./cicd/scripts/codeguru.sh $SCAN_NAME /tmp/source-code.zip $AWS_DEFAULT_REGION
564564
565565
post_build:
566566
commands:

0 commit comments

Comments
 (0)