Skip to content
Snippets Groups Projects
Commit c34ce79d authored by Michael Lin's avatar Michael Lin
Browse files

Squashed commit of the following

commit c834be44 
Author: Michael Lin <mikemlin@amazon.com> 
Date: Tue Oct 25 2022 08:45:51 GMT-0700 (Pacific Daylight Time) 

    fix git secrets via buildspec.yaml file
parent 8e149735
No related branches found
No related tags found
1 merge request!286Update buildspec file
......@@ -44,6 +44,10 @@ phases:
- 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
#TODO temporarily adding hotfix, due to https://github.com/awslabs/git-secrets/issues/220
- export SAY_LOCATION=`ln -s "$(which echo)" say`
- export PATH="$PATH:$SAY_LOCATION"
- git clone https://github.com/awslabs/git-secrets.git
- cd git-secrets && make install && cd ..
- git secrets --install && git secrets --register-aws
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment