From d574a1adf101d01ad71832d23820aa4428da4e48 Mon Sep 17 00:00:00 2001
From: Michael Lin <mikemlin@amazon.com>
Date: Wed, 26 Oct 2022 18:12:06 +0000
Subject: [PATCH] Squashed commit of the following

commit 41cbb320
Author: Michael Lin <mikemlin@amazon.com>
Date: Tue Oct 25 2022 08:34:23 GMT-0700 (Pacific Daylight Time)

    Fix git secrets via buildspec.yaml file
---
 provider/indexer-aws/build-aws/buildspec.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/provider/indexer-aws/build-aws/buildspec.yaml b/provider/indexer-aws/build-aws/buildspec.yaml
index 07568c7d8..79089e293 100644
--- a/provider/indexer-aws/build-aws/buildspec.yaml
+++ b/provider/indexer-aws/build-aws/buildspec.yaml
@@ -45,6 +45,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
-- 
GitLab