You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Option to suppress auth warning when using install_components without authentication #731
When using setup-gcloud solely to install components (e.g., cloud-firestore-emulator for testing), the action emits a warning:
The gcloud CLI is not authenticated (or it is not installed). Authenticate by adding the "google-github-actions/auth" step prior this one.
This warning is misleading for users who intentionally don't need authentication — they only need gcloud to install a component. There should be a way to suppress it.
Use Case
We use setup-gcloud in CI to install the Firestore emulator for integration tests:
- name: Set up Google Cloud SDKuses: google-github-actions/setup-gcloud@v2with:
install_components: 'cloud-firestore-emulator'
- name: Run testsrun: pytest
The emulator runs locally and requires no GCP credentials. Authentication is irrelevant to this use case, but the warning appears on every workflow run, creating noise in CI logs.
Proposal
Add an optional input (e.g., skip_auth_check: true) to suppress the authentication warning when users knowingly don't need authentication.
Alternatively, the action could skip the auth check automatically when only install_components is specified and no other gcloud-dependent inputs (like project_id) are provided.
Related
Spurious warning auth is unavailabe, but gcloud works #670 — similar request, but for a different use case (self-hosted runners with ADC). The maintainer's response was that warnings can be ignored, but for component-only installations the warning is particularly misleading since auth is genuinely unnecessary.
+1 — we hit this with the Cloud Spanner emulator, which is the same shape as the Firestore-emulator case in the OP.
Our integration tests use setup-gcloud only to put the gcloud CLI on PATH so the test harness can drive a local emulator. The gcloud config explicitly disables credentials and points at localhost:
gcloud --configuration test config set auth/disable_credentials true
gcloud --configuration test config set api_endpoint_overrides/spanner http://localhost:9020/
gcloud --configuration test spanner instances create test --config=test ...
No GCP credentials are involved by design, so the The gcloud CLI is not authenticated... warning is pure noise on every run. A skip_auth_check: true input (or auto-skipping the check when auth is explicitly disabled / only install_components is set) would let us keep our CI logs clean.
For now we're just ignoring it, but an opt-out would be appreciated.
Activity
davidxia commentedon Jun 15, 2026
+1 — we hit this with the Cloud Spanner emulator, which is the same shape as the Firestore-emulator case in the OP.
Our integration tests use
setup-gcloudonly to put thegcloudCLI on PATH so the test harness can drive a local emulator. The gcloud config explicitly disables credentials and points at localhost:No GCP credentials are involved by design, so the
The gcloud CLI is not authenticated...warning is pure noise on every run. Askip_auth_check: trueinput (or auto-skipping the check when auth is explicitly disabled / onlyinstall_componentsis set) would let us keep our CI logs clean.For now we're just ignoring it, but an opt-out would be appreciated.
MEIER-1530: Harden security boundaries and consolidate workflow updat…