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

Restrict invokig subprocess.run via an internal API #514

Open
behnazh-w opened this issue Oct 16, 2023 · 0 comments
Open

Restrict invokig subprocess.run via an internal API #514

behnazh-w opened this issue Oct 16, 2023 · 0 comments
Labels
code quality The code quality related tasks

Comments

@behnazh-w
Copy link
Member

We need to manage and restrict the environment passed to the subprocess.run invocation by creating an internal API. We need to create an allow list for the env argument to prevent the subprocess from accessing sensitive data, such as GitHub tokens. We can also make sure that the dangerous argument shell=True is never used.

@behnazh-w behnazh-w added the code quality The code quality related tasks label Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality The code quality related tasks
Projects
None yet
Development

No branches or pull requests

1 participant