-
Notifications
You must be signed in to change notification settings - Fork 10
Deprecate the project-id input in google/auth action.
#124
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
Conversation
v1v
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit confused, I can see https://github.com/google-github-actions/auth#usage
Does it mean the usage example is not correct? Can you elaborate this please?
I actually had the same assumption and I think this is the reason why I added both inputs originially. But if you look at our current usages. e.g.
we are not using the I think, when the input |
|
IMO, for a future release, maybe we can create a mapping of aliases to make it more readable const aliases = {
'elastic-observability': '1234',
'elastic-observability-ci': '5678',
'elastic-cdn': '91011'
}so that the usage becomes something like this |
Shall we raise a GH issue to the upstream project? |
From my understand setting the project ID still has a use CLI tools or actions after the auth action benefit from the exported environment variables. In our case it seems like it worked regardless. |
I still need clarification. https://github.com/google-github-actions/auth/blob/c8788cc4c52eba6566baf085281fec298f1a1146/src/utils.ts#L67-L91 is the function to get the projectID, and the I don't understand how |
The |
Correct me if I'm wrong, so I think if it's not honoured then we might need to report that to the upstream, otherwise, I cannot understand what's the reason for letting using it while it's not honoured. |
According to the README.md, The only required attribute is P.S. I can still ask, but from my understanding, it's a convenience option to export the project ID as an environment variable for other Google-related actions or tools. |
But if they don't match, will the exported variable be In my view, it's not clear why https://github.com/google-github-actions/auth#usage shows a |
Fair enough. Sorry, for being stubborn. I will create an issue shortly.. but what does it mean for this PR? |
No worries at all. Let me review it now |
|
…ibana * upstream/main: (51 commits) deps: Bump oblt-cli version to 7.6.2 (elastic#139) feat: undeploy-my-kibana (elastic#140) build(deps): bump the github-actions group across 2 directories with 2 updates (elastic#141) build(deps): bump the github-actions group across 6 directories with 1 update (elastic#138) chore: deps(oblt-cli): Bump oblt-cli version to 7.5.24 (elastic#137) feat: support wait for maven central (elastic#133) feat: migrate is-member-elastic-org (elastic#135) deps: Bump oblt-cli version to 7.5.22 (elastic#131) deps(updatecli): bump all policies (elastic#130) ci: use GitHub app for ephemeral tokens (elastic#129) Deprecate the `project-id` input in `google/auth` action. (elastic#124) deps(updatecli): bump all policies (elastic#122) chore: deps(oblt-cli): Bump oblt-cli version to 7.5.21 (elastic#121) build(deps): bump the github-actions group across 11 directories with 4 updates (elastic#125) github-action: use ephemeral tokens with the required permissions (elastic#113) feat(github): validate-comment (elastic#120) feat(pre-commit): migrate from apm-pipeline-library (elastic#119) deps(updatecli): bump all policies (elastic#117) feat(await-maven-artifact): migrate from https://github.com/elastic/apm-pipeline-library (elastic#118) Add `test-report` action (elastic#114) ...


The
project-idis actually not relevant and is not used by the internal google-github-actions/auth action if theworkload_identity_providerinput is provided.This option may be removed in a future release.