From bc5cfb3fe480b164ca0e820913aebe38ed449258 Mon Sep 17 00:00:00 2001 From: Pmoranga Date: Thu, 20 Jan 2022 22:43:54 +0100 Subject: [PATCH] Fix GH Set Set when just repository was provided (#93) --- scripts/gha-setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/gha-setup.sh b/scripts/gha-setup.sh index fa3a34c..9dec62a 100755 --- a/scripts/gha-setup.sh +++ b/scripts/gha-setup.sh @@ -27,8 +27,8 @@ EOF ## IMPORTANT: Set secret operates on the nearest .git repo even if you specify a different repository pushd $PROJECT_DIR && \ - gh secret set AWS_ACCESS_KEY_ID --repos="$GITHUB_REPO" --body="$AWS_ACCESS_KEY_ID" && \ - gh secret set AWS_SECRET_ACCESS_KEY --repos="$GITHUB_REPO" --body="$AWS_SECRET_ACCESS_KEY" && \ + gh secret set AWS_ACCESS_KEY_ID --repos="$GITHUB_ORG/$GITHUB_REPO" --body="$AWS_ACCESS_KEY_ID" && \ + gh secret set AWS_SECRET_ACCESS_KEY --repos="$GITHUB_ORG/$GITHUB_REPO" --body="$AWS_SECRET_ACCESS_KEY" && \ popd ## Branch Protect for PRs