From 830d43aa297b96a73182b8459eeae825c2948c83 Mon Sep 17 00:00:00 2001
From: Elad Ben-Israel <benisrae@amazon.com>
Date: Wed, 21 Apr 2021 15:08:06 +0300
Subject: [PATCH 1/2] feat(superchain): add github cli

Adds GitHub CLI to superchain.
---
 superchain/Dockerfile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/superchain/Dockerfile b/superchain/Dockerfile
index 88eab6dbf1..b630412ee5 100644
--- a/superchain/Dockerfile
+++ b/superchain/Dockerfile
@@ -19,7 +19,8 @@ ENV LANG="C.UTF-8"
     M2="/usr/local/apache-maven/bin"                                                                                    \
     MAVEN_OPTS="-Xms256m -Xmx512m"                                                                                      \
                                                                                                                         \
-    GOROOT="/usr/local/go"
+    GOROOT="/usr/local/go"                                                                                              \
+    GITHUB_CLI_VERSION="1.9.2"
 
 # Install deltarpm as it can speed up the upgrade processes, and tar as it's needed for installing Maven
 # Also upgrading anything already installed, and adding some common dependencies for included tools
@@ -98,6 +99,11 @@ RUN curl -sSL https://dl.yarnpkg.com/rpm/yarn.repo | tee /etc/yum.repos.d/yarn.r
   && yum -y install yarn                                                                                                \
   && yum clean all && rm -rf /var/cache/yum
 
+# Install GitHub CLI
+RUN curl -sL https://github.com/cli/cli/releases/download/v${GITHUB_CLI_VERSION}/gh_${GITHUB_CLI_VERSION}_linux_amd64.tar.gz | \
+  tar -xzv --strip-components=2 gh_${GITHUB_CLI_VERSION}_linux_amd64/bin/gh                                                    \
+  && mv gh /usr/bin/
+
 # Install some configuration
 COPY ssh_config /root/.ssh/config
 RUN chmod 600 /root/.ssh/config

From 4c517ffb71910f3b61f019b80e42e7b93a675ea8 Mon Sep 17 00:00:00 2001
From: Elad Ben-Israel <benisrae@amazon.com>
Date: Wed, 21 Apr 2021 15:20:22 +0300
Subject: [PATCH 2/2] Update README.md

---
 superchain/README.md | 1 +
 1 file changed, 1 insertion(+)

diff --git a/superchain/README.md b/superchain/README.md
index cc3e1caaa2..ea6acd4b99 100644
--- a/superchain/README.md
+++ b/superchain/README.md
@@ -51,6 +51,7 @@ Tool / Utility | Version
 `rsync`        | `>= 3.1.2`
 `yarn`         | `>= 1.21.1`
 `zip` & `unzip`| `>= 6.0-19`
+`gh`           | `>= 1.9.2`
 
 ## License