Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update entrypoint.sh - Test Scoutsuite execution only #97

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .project_automation/functional_tests/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,15 @@ run_test() {
acct_id=$(aws sts get-caller-identity --output text --query 'Account')

# if account id is xxxx do this
aws sts get-caller-identity --debug
if [ "$acct_id" == ${NON_CT_ENV} ]; then
run_test "launch-partner-solution-nonct"
#run_test "launch-partner-solution-nonct"
.project_automation/functional_tests/scoutsuite/scoutsuite.sh
else
run_test "launch-partner-solution"
#run_test "launch-partner-solution"
.project_automation/functional_tests/scoutsuite/scoutsuite.sh
fi

# Run taskcat e2e test
#run_test "launch-partner-solution"

Expand Down
4 changes: 2 additions & 2 deletions .project_automation/functional_tests/scoutsuite/scoutsuite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ run_scoutsuite() {
#Create Scoutsuite security scan custom rule
python3 .project_automation/functional_tests/scoutsuite/create-scoutsuite-custom-rule.py
# Execute Scoutsuite security scan
scout aws -r us-east-1 --ruleset .project_automation/functional_tests/scoutsuite/abi-scoutsuite-custom-ruleset.json --no-browser --max-rate 5 --max-workers 5 -f
scout aws -r us-east-1 --ruleset .project_automation/functional_tests/scoutsuite/abi-scoutsuite-custom-ruleset.json --no-browser --max-rate 1 --max-workers 1 -f
# Upload Scoutsuite security scan results to S3 bucket named scoutsuite-results-aws-AWS-ACCOUNT-ID
python3 .project_automation/functional_tests/scoutsuite/process-scoutsuite-report.py
# Delete taskcat e2e test resources
Expand All @@ -37,4 +37,4 @@ process_scoutsuite_report() {
}

#Run Scoutsuite security test
run_scoutsuite
run_scoutsuite