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

Expose env vars when building docs from a PR/MR #7182

Closed
webknjaz opened this issue Jun 11, 2020 · 4 comments
Closed

Expose env vars when building docs from a PR/MR #7182

webknjaz opened this issue Jun 11, 2020 · 4 comments
Labels
Improvement Minor improvement to code Needed: design decision A core team decision is required

Comments

@webknjaz
Copy link
Contributor

Details

Expected Result

Successful build

Actual Result

Loading a repo-local in-tree Sphinx extension fails in PR builds (with ImportError) but is successful on master.

I've just realized that I've set PYTHONPATH in the UI earlier to make it work. And now it looks like it is set in normal builds but not in PRs.

@webknjaz
Copy link
Contributor Author

As I can see, env vars UI is implemented as storage for secrets. How about adding the ability to provide some env vars via a YAML config? That would be public and wouldn't need any extra protection implementation.

@humitos
Copy link
Member

humitos commented Jun 11, 2020

I've just realized that I've set PYTHONPATH in the UI earlier to make it work. And now it looks like it is set in normal builds but not in PRs.

Yes. We do not expose env variables in PRs as a security protection.

How about adding the ability to provide some env vars via a YAML config?

You already opened an issue for this at #6311. We haven't done a decision yet.

@webknjaz
Copy link
Contributor Author

Yes. We do not expose env variables in PRs as a security protection.

Yeah, I figured that it's because of the security considerations :)

You already opened an issue for this at #6311. We haven't done a decision yet.

Ah, right. I've forgotten about that one. FWIW this issue brings another perspective at the problem because I didn't realize that missing open env vars feature would also hit the PR integration. So the current issue is about a slightly different side of it.
And I also wanted it to be separate feedback because the PR integration is in beta (still?).

@stsewd stsewd changed the title PR builds seem to be executed in a different context Expose env vars when building docs from a PR/MR Jun 15, 2020
@stsewd stsewd added Improvement Minor improvement to code Needed: design decision A core team decision is required labels Jun 15, 2020
@stsewd
Copy link
Member

stsewd commented May 11, 2021

Now you can expose env vars in PRs, isn't documented #8159 but you can find the option in the UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Minor improvement to code Needed: design decision A core team decision is required
Projects
None yet
Development

No branches or pull requests

3 participants