Skip to content

Commit

Permalink
chore: get GitHub Access token by gh auth token
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Jan 30, 2024
1 parent bf44cd2 commit 975e2eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ set -eu
container_name=${1:-aqua-registry}

token="${AQUA_GITHUB_TOKEN:-${GITHUB_TOKEN:-}}"
if [ -z "$token" ]; then
echo "[INFO] Get a GitHub Access token by gh auth token" >&2
token=$(aqua exec -- gh auth token)
fi
envs=""
if [ -n "$token" ]; then
envs="-e GITHUB_TOKEN=$token"
Expand Down

0 comments on commit 975e2eb

Please sign in to comment.