diff --git a/.github/workflows/docs_suggestions.yml b/.github/workflows/docs_suggestions.yml index be1229e5fec12cc5c7ac0b03a5390eac3dc692d0..df4807bd9441c6b48f5628d5b06ed6cdf8591f17 100644 --- a/.github/workflows/docs_suggestions.yml +++ b/.github/workflows/docs_suggestions.yml @@ -95,7 +95,8 @@ jobs: id: analyze run: | # Ensure gh CLI is authenticated (GH_TOKEN may not be auto-detected) - echo "$GH_TOKEN" | gh auth login --with-token + # Unset GH_TOKEN first to allow gh auth login to store credentials + echo "$GH_TOKEN" | (unset GH_TOKEN && gh auth login --with-token) OUTPUT_FILE=$(mktemp) @@ -268,7 +269,8 @@ jobs: id: analyze run: | # Ensure gh CLI is authenticated (GH_TOKEN may not be auto-detected) - echo "$GH_TOKEN" | gh auth login --with-token + # Unset GH_TOKEN first to allow gh auth login to store credentials + echo "$GH_TOKEN" | (unset GH_TOKEN && gh auth login --with-token) OUTPUT_FILE=$(mktemp)