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

Why Pre Workflow Hooks does not have WORKSPACE environment variable? #4927

Open
1 task
hakuno opened this issue Sep 16, 2024 · 1 comment
Open
1 task

Why Pre Workflow Hooks does not have WORKSPACE environment variable? #4927

hakuno opened this issue Sep 16, 2024 · 1 comment
Labels
feature New functionality/enhancement

Comments

@hakuno
Copy link

hakuno commented Sep 16, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Describe the user story

As a Solutions Architect, I'd like to filter some commands (plan, apply etc) by workspace, but the docs say it doesn't have the WORKSPACE environment variable right there. Is it true?

Describe the solution you'd like

I'd like the WORKSPACE environment variable to be available in Pre Workflow Hooks.

@hakuno hakuno added the feature New functionality/enhancement label Sep 16, 2024
@hakuno hakuno changed the title Why Pre Workflow Hooks does not have WEBHOOK environment variable? Why Pre Workflow Hooks does not have WORKSPACE environment variable? Sep 17, 2024
@aarozhkov
Copy link

+1.
Each workspace represents separate env and we need to use separate set of Creds(scoped) for various TF providres. Like mongo atlas, auth0 and etc. I want to use some identification of workspace within pre-hook which will set proper env variables.

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

No branches or pull requests

2 participants