Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gcloud 507 and above starts reporting bq warning #464

Open
jprecuch opened this issue Jan 30, 2025 · 3 comments
Open

Gcloud 507 and above starts reporting bq warning #464

jprecuch opened this issue Jan 30, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@jprecuch
Copy link

TL;DR

When auth done through this action I can see warning being reported after gcloud 507 was released. Was working fine on 506 and below.

      - name: Login to Google for GKE/BQ
        uses: google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f # v2.1.7
        with:
          workload_identity_provider: ${{ secrets.MOONSTONE_WORKLOAD_IDENTITY_PROVIDER }}
          service_account: ${{ secrets.MOONSTONE_SERVICE_ACCOUNT }}

ends with

WARNING: `--scopes` flag may not working as expected and will be ignored for account type external_account.

Output:

bq show --format=prettyjson moonstone_dataset
+ DATASET_LOCATION='WARNING: `--scopes` flag may not working as expected and will be ignored for account type external_account.
{
  "access": [
    {
      "role": "WRITER",
      "specialGroup": "projectWriters"
    },
    {
      "role": "OWNER",
      "specialGroup": "projectOwners"
    },
    {
      "role": "OWNER",
      "userByEmail": "REDACTED"
    },
    {
      "role": "READER",
      "specialGroup": "projectReaders"
    }
  ],
  "creationTime": "1709[56](URL#step:13:57)0942416",
  "datasetReference": {
    "datasetId": "moonstone_dataset",

Expected behavior

No warning should be printed?

Observed behavior

No response

Action YAML

- name: Login to Google for GKE/BQ
        uses: google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f # v2.1.7
        with:
          workload_identity_provider: ${{ secrets.MOONSTONE_WORKLOAD_IDENTITY_PROVIDER }}
          service_account: ${{ secrets.MOONSTONE_SERVICE_ACCOUNT }}

Log output


Additional information

No response

@jprecuch jprecuch added the bug Something isn't working label Jan 30, 2025
Copy link

Hi there @jprecuch 👋!

Thank you for opening an issue. Our team will triage this as soon as we can. Please take a moment to review the troubleshooting steps which lists common error messages and their resolution steps.

@jprecuch
Copy link
Author

It seems this can be turn off by

bq show --enable_gdrive=false

Probably not issue of this action. Hard to tell

@sethvargo
Copy link
Member

Hi @jprecuch - where is the error messaging originating from? Can you supply the full debug logs? I'm not sure that warning is coming from "auth", since we don't run any gcloud or bq cli commands in auth. It might be coming from a later step in your workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants