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

The plugin cannot use credentials generated by WIF #10

Closed
KengoTODA opened this issue Jan 13, 2023 · 0 comments · Fixed by #12
Closed

The plugin cannot use credentials generated by WIF #10

KengoTODA opened this issue Jan 13, 2023 · 0 comments · Fixed by #12

Comments

@KengoTODA
Copy link
Contributor

KengoTODA commented Jan 13, 2023

Hello 👋,

When I build my project with Gradle 7.6 and Java 11, found that this plugin ended with the following exception:

* What went wrong:
Gradle could not start your build.
> Could not create service of type BuildCacheController using .createBuildCacheController().
   > When specifying a JSON credential type, the subject_token_field_name must be set.

Note that the credential was generated by WIF like below:

# .circleci/config.yml
      - gcp-cli/setup:
          use_oidc: true
      - run: ./gradlew build

The root cause seems to be that google-auth-library-java used by this plugin is v1.0.0, and does not contain the bugfix released in 1.4.0.

I'll try to find a way to fix this issue later, but let me open an issue for sharing. Thank you!

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

Successfully merging a pull request may close this issue.

1 participant