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: [SUP-1872] fixed pipfile parser #222

Merged
merged 1 commit into from
Sep 14, 2023
Merged

Conversation

gemaxim
Copy link
Contributor

@gemaxim gemaxim commented Sep 12, 2023

What does this PR do?

The pipfile parser was buggy because the toml parser returns both the value of the attribute and the end position as a tuple, but we only need the value. This changes fix that.

Any background context you want to provide?

You can see in the support ticket that snyk-python-plugin fails for a Pipfile that has markers, because the regex function does not receive a string, but the tuple mentioned above.

What are the relevant tickets?

JIRA ticket SUP-1872

@gemaxim gemaxim requested a review from a team as a code owner September 12, 2023 07:30
@CLAassistant
Copy link

CLAassistant commented Sep 12, 2023

CLA assistant check
All committers have signed the CLA.

@gemaxim gemaxim force-pushed the fix/SUP-1872/pipfile-parse-fix branch from a1f659d to 5615a1c Compare September 13, 2023 07:13
@gemaxim gemaxim merged commit 65eacd7 into main Sep 14, 2023
19 checks passed
@gemaxim gemaxim deleted the fix/SUP-1872/pipfile-parse-fix branch September 14, 2023 06:01
@snyksec
Copy link

snyksec commented Sep 14, 2023

🎉 This PR is included in version 2.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants