Open rapturt9 opened 2 days ago
Thanks for the feedback!
I think we can support this in the following manner
OPENHANDS_ENV
. For example - OPENHANDS_ENV_CONTENTFUL_API_KEY
(note that this needs to be set by the user).OPENHANDS_ENV
prefix will passed to resolver as SANBOX_ENV_${name}
. Continuing the example from above, we would get SANBOX_ENV_CONTENTFUL_API_KEY
After these steps Openhands agents will have access to CONTENTFUL_API_KEY
in its environment. This way ENV variables can be passed without having to update the workflow definition every time.
cc @neubig I'd love to take a shot at this!
EDIT: we should store these env variables in repo secrets NOT repo variables
Thanks @malhotra5 , assigned!
What problem or use case are you trying to solve?
The OpenHands resolver doesn't have options to dynamically set additional environment variables required to run our project.
Describe the UX of the solution you'd like
Introduce the ability to add extra secrets to the workflow, allowing the OpenHands resolver to set up necessary environment variables automatically. This can be achieved by passing a JSON string of environment variables within the workflow configuration.
Do you have thoughts on the technical implementation?
Example Configuration:
Describe alternatives you've considered
Passing in a secure link to an env file, but not sure how this would work.
Additional context
Implementing this enhancement will significantly improve the flexibility and maintainability of our workflows.