From 174b52d53bd11c3c1634eb5d89fbaea7038dda72 Mon Sep 17 00:00:00 2001
From: Sutton <suttonsp@147dda3a90de.ant.amazon.com>
Date: Wed, 3 Feb 2021 10:13:24 -0600
Subject: [PATCH] ubuntu expired key fix

---
 provider/indexer-aws/build-aws/buildspec.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/provider/indexer-aws/build-aws/buildspec.yaml b/provider/indexer-aws/build-aws/buildspec.yaml
index 7f263524d..71e7e2c50 100644
--- a/provider/indexer-aws/build-aws/buildspec.yaml
+++ b/provider/indexer-aws/build-aws/buildspec.yaml
@@ -27,6 +27,8 @@ phases:
     runtime-versions:
       java: corretto8
     commands:
+      # fix error noted here: https://github.com/yarnpkg/yarn/issues/7866
+      - curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
       - if [ $(echo $CODEBUILD_SOURCE_VERSION | grep -c  ^refs/heads.*) -eq 1 ]; then echo "Branch name found"; else echo "This build only supports branch builds" && exit 1; fi
       - apt-get update -y
       - apt-get install -y maven
-- 
GitLab