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

Fix unsafe shell command in luigi/contrib/lsf.py #3307

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

Ali-Razmjoo
Copy link
Contributor

Fixes #3304

Update track_job function to use shell=False in subprocess.Popen call.

  • Change the cmd variable to be a list of arguments instead of a single string.
  • Set the shell parameter to False in the subprocess.Popen call.

Fixes spotify#3304

Update `track_job` function to use `shell=False` in `subprocess.Popen` call.

* Change the `cmd` variable to be a list of arguments instead of a single string.
* Set the `shell` parameter to `False` in the `subprocess.Popen` call.
@Ali-Razmjoo Ali-Razmjoo requested review from dlstadther and a team as code owners September 4, 2024 13:12
@dlstadther dlstadther merged commit c9a0d20 into spotify:master Sep 5, 2024
48 checks passed
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.

Unsafe shell command constructed from library input in luigi/contrib/lsf.py
2 participants