diff --git a/git-hangman-lab/scripts/create-pr b/git-hangman-lab/scripts/create-pr index 64c1b98..6841682 100755 --- a/git-hangman-lab/scripts/create-pr +++ b/git-hangman-lab/scripts/create-pr @@ -40,8 +40,8 @@ if ! secret-mgr list 2>/dev/null | grep -q "git-access-token"; then "$SCRIPT_DIR/generate-access-token" fi -# Get the access token -GIT_TOKEN="$(secret-mgr get-secret --key git-access-token)" +# Get the access token (extract actual token from "Access token was successfully created: ") +GIT_TOKEN="$(secret-mgr get-secret --key git-access-token | awk '{print $NF}')" if [[ -z "$GIT_TOKEN" ]]; then echo "Error: Failed to get git-access-token"