diff --git a/doc/user/duo_agent_platform/agent_assistant.md b/doc/user/duo_agent_platform/agent_assistant.md index 0dad913b229bda48bc555e51d8202f73c06e6b44..429fa0cfde4d6245a3d1956d861d89bc7e53ad66 100644 --- a/doc/user/duo_agent_platform/agent_assistant.md +++ b/doc/user/duo_agent_platform/agent_assistant.md @@ -422,7 +422,15 @@ commands: - echo "Configuring git" - git config --global user.email "amazonq@gitlab.com" - git config --global user.name "AmazonQ Code" - - git remote set-url origin https://gitlab-ci-token:$GITLAB_TOKEN_AMAZON_Q@$GITLAB_HOST/internal-test/q-words-demo.git + # - git remote set-url origin https://gitlab-ci-token:$GITLAB_TOKEN_AMAZON_Q@$GITLAB_HOST/internal-test/q-words-demo.git + - | + # Use GITLAB_PROTOCOL if set (default https) + GITLAB_PROTOCOL=${GITLAB_PROTOCOL:-https} + # Tell glab and Amazon Q to use the configured protocol API endpoint + glab config set api_base_url $GITLAB_PROTOCOL://$GITLAB_HOST/api/v4 -g + + # Authenticate GLAB tool with the GitLab instance + glab auth login --hostname $GITLAB_HOST --token $GITLAB_TOKEN --api-protocol $GITLAB_PROTOCOL - echo "Running q" - | AMAZON_Q_SIGV4=1 q chat --trust-all-tools --no-interactive --verbose " @@ -440,7 +448,7 @@ commands: When you complete your work create a new Git branch, if you aren't already working on a feature branch, with the format of 'feature/' and check in/push code. - When you check in and push code you will need to use the access token stored in GITLAB_TOKEN and the user ClaudeCode. + When you check in and push code you will need to use the access token stored in GITLAB_TOKEN and the user AmazonQ. Lastly, after pushing the code, if a MR doesn't already exist, create a new MR for the branch and link it to the issue using: `glab mr create --title "" --description "<desc>" --source-branch <branch> --target-branch <branch>` @@ -454,6 +462,7 @@ variables: - AWS_SECRET_NAME - AWS_REGION_NAME - MCP_CONFIG + - GITLAB_PROTOCOL # optional; default = https ``` #### Google Gemini CLI