Option to suppress auth warning when using install_components without authentication
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 38/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- github-actions, google-cloud, typescript
Rechercherichtung
Start by locating the action's input definitions and the code that emits the unauthenticated warning, then inspect how install_components and project_id are handled. Compare the proposed skip_auth_check input with the automatic-skip alternative; done means component-only workflows can avoid the misleading warning while authentication warnings remain for relevant configurations.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
TL;DR
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 SDK
uses: google-github-actions/setup-gcloud@v2
with:
install_components: 'cloud-firestore-emulator'
- name: Run tests
run: 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
- #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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 1.9k
- Forks
- 534
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus google-github-actions/setup-gcloud
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
google-github-actions/setup-gcloud#735 · 1 Reaktion ·
-
bug
Schwierigkeit 3/5 1-3 Stunden Anfängerfreundlichkeit 15/100
google-github-actions/setup-gcloud#738 · 11 Kommentare · 26 Reaktionen ·
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 52/100
google-github-actions/setup-gcloud#734 · 1 Kommentar · 2 Reaktionen ·
-
Option to install numpyOffenenhancement
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
Alle Issues in google-github-actions/setup-gcloud
Ähnliche Issues
-
freshness freshness:observed-only
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
thoroc/context-radar#282 ·
-
bug P2 rust
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
area: web
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
gabe-santana/arkdraw#25 ·
-
bug require-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
expressjs/expressjs.com#2549 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug good first issue hacktoberfest
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
codercops/discord-bot#101 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag