Skip to content
Snippets Groups Projects
Commit b4990ae0 authored by Morris Estepa's avatar Morris Estepa
Browse files

Squashed commit of the following

commit efa9eaa3 
Author: Morris Estepa <estepamo@amazon.com> 
Date: Fri Sep 09 2022 13:21:05 GMT-0500 (Central Daylight Time) 

    Merge branch 'dev' into add-git-secrets


commit 8c2b1fe1 
Author: Morris Estepa <estepamo@amazon.com> 
Date: Thu Sep 08 2022 15:52:56 GMT-0500 (Central Daylight Time) 

    add git secrets
parent e8cbc7c9
Branches
Tags
Loading
......@@ -45,6 +45,10 @@ phases:
# Get the AWS Maven Auth Token
- export AWS_ACCOUNT_ID=`aws sts get-caller-identity | grep Account | cut -d':' -f 2 | cut -d'"' -f 2`
- export AWS_OSDU_DEV_MAVEN_AUTH_TOKEN=`aws codeartifact get-authorization-token --domain $AWS_OSDU_DEV_MAVEN_DOMAIN --domain-owner $AWS_ACCOUNT_ID --query authorizationToken --output text`
# Install git secrets
- git clone https://github.com/awslabs/git-secrets.git
- cd git-secrets && make install && cd ..
- git secrets --install && git secrets --register-aws
pre_build:
commands:
- echo "Logging in to Amazon ECR..."
......@@ -66,6 +70,9 @@ phases:
- export VERSION=${pom_version%-*}
- printenv
- GIT_SECRETS_SCAN_RESULT=$(git secrets --scan 2> ${OUTPUT_DIR}/git_secrets.out.txt && echo OK || echo FAILED)
- if [ "$GIT_SECRETS_SCAN_RESULT" = "FAILED" ]; then echo "Secrets detected!" && exit 1; fi
- echo "Building primary service assemblies..."
- mvn install -N # required for this service to install the parent pom so that the integration tests will find it
- mvn -B test install sonar:sonar -pl .,schema-core,provider/schema-aws -Ddeployment.environment=prod -Dsonar.login=${SONAR_USERNAME} -Dsonar.password=${SONAR_PASSWORD} -Dsonar.branch.name=${BRANCH_NAME}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment