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_SERVICE_KEY is a required field #40

Open
jacksongoode opened this issue Feb 9, 2023 · 3 comments
Open

GCLOUD_SERVICE_KEY is a required field #40

jacksongoode opened this issue Feb 9, 2023 · 3 comments

Comments

@jacksongoode
Copy link

Using the example:

jobs:
  build-and-push-to-gcr:
    runs-on: ubuntu-latest
    permissions:
      contents: 'read'
      id-token: 'write'
    steps:      
      - uses: RafikFarhad/push-to-gcr-github-action@v5-beta
        with:
          gcloud_service_key: ${{ secrets.gcloud_service_key }}
          registry: gcr.io
          project_id: ...
          image_name: ...
          image_tag: ...

I get that the service key is needed. Reverted to 4.1 and this doesn't happen.

@RafikFarhad
Copy link
Owner

Hi @jacksongoode, thanks for using this action.
I did not understand clearly, what are you using with version 4.1? And what is the error when you use v5?

@Wurden
Copy link

Wurden commented Jan 10, 2024

Using v5-beta I get the following error:

GCLOUD_SERVICE_KEY is a required field when workload identity is not used. Exiting ...

I am providing the gcloud_service_key like @jacksongoode is.

@RafikFarhad
Copy link
Owner

@Wurden can you please share a snippet of your configuration?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants