Skip to content

Commit

Permalink
FPO-419: Login with gh auth
Browse files Browse the repository at this point in the history
  • Loading branch information
willfish committed Sep 25, 2024
1 parent 4f8406b commit 50a7ea4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .circleci/bin/ghinstall
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,10 @@ echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githu

sudo apt update
sudo apt install gh

if [ -z "${GITHUB_TOKEN:-}" ]; then
echo "GITHUB_TOKEN is not set"
exit 1
fi

echo "${GITHUB_TOKEN}" | env -u GITHUB_TOKEN gh auth login --with-token --hostname github.com

0 comments on commit 50a7ea4

Please sign in to comment.