Skip to content

Inherit environment variables deemed safe by default #27

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

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

jspahrsummers
Copy link
Member

Comment on lines +35 to +37
if value.startswith("()"):
# Skip functions, which are a security risk
continue
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are more ways of defining functions.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is copied from the behavior of sudo

@jspahrsummers jspahrsummers merged commit 48beb52 into main Nov 7, 2024
5 checks passed
@jspahrsummers jspahrsummers deleted the justin/env-var-inheritance branch November 7, 2024 11:11
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 this pull request may close these issues.

2 participants