-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat(sca): creating alias mapping for javascript #5567
Conversation
checkov/common/sca/reachability/javascript/javascript_alias_mapping_strategy.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
from typing import List, Dict | ||
|
||
# {<package_name>: {"packageAliases": [<alias_1> ,..... , <alias_n>]}} | ||
FileParserOutput = Dict[str, Dict[str, List[str]]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's create stricter types for the entire mapping object (can leverage pydantic for that)
Since we will pass this object to sast-core we need to have a clear view of the "contract"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed. let's talk !
* add javascript_alias_mapping_strategy * test, failure handling * fix flake8 * rwemoving redudnat prints * fix mypy * creating the utils file * using the new format * using the new format * fix tests * fix tests * fix tests * fix tests * remove file * using pydantic * fix tests * fix tests * fix tests * fix tests * add --------- Co-authored-by: ipeleg <[email protected]>
This reverts commit 10797d9.
Revert "feat(sca): creating alias mapping for javascript (#5567)" This reverts commit 10797d9. Co-authored-by: ipeleg <[email protected]>
…#5581) Revert "feat(sca): creating alias mapping for javascript (bridgecrewio#5567)" This reverts commit 10797d9. Co-authored-by: ipeleg <[email protected]>
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Description
creating alias mapping for javascript
Checklist: