-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add: standalone plugin for evaluating dependencies with a graph #774
base: main
Are you sure you want to change the base?
Conversation
Conventional Commits Report
🚀 Conventional commits found. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #774 +/- ##
==========================================
+ Coverage 79.81% 80.38% +0.57%
==========================================
Files 87 91 +4
Lines 3022 3212 +190
Branches 589 606 +17
==========================================
+ Hits 2412 2582 +170
- Misses 462 478 +16
- Partials 148 152 +4 ☔ View full report in Codecov by Sentry. |
Dependency ReviewThe following issues were found:
Snapshot WarningsEnsure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice. License Issuespoetry.lock
pyproject.toml
Allowed Licenses: 0BSD, AGPL-3.0-or-later, Apache-2.0, BlueOak-1.0.0, BSD-2-Clause, BSD-3-Clause-Clear, BSD-3-Clause, BSL-1.0, CAL-1.0, CC-BY-3.0, CC-BY-4.0, CC-BY-SA-4.0, CC0-1.0, EPL-2.0, GPL-2.0-only, GPL-2.0-or-later, GPL-2.0, GPL-3.0-or-later, ISC, LGPL-2.0-only, LGPL-2.0-or-later, LGPL-2.1-only, LGPL-2.1-or-later, LGPL-2.1, LGPL-3.0-only, LGPL-3.0, LGPL-3.0-or-later, MIT, MIT-CMU, MPL-1.1, MPL-2.0, OFL-1.1, PSF-2.0, Python-2.0, Python-2.0.1, Unicode-DFS-2016, Unlicense OpenSSF Scorecard
Scanned Files
|
5c1c5e8
to
e3ab622
Compare
This reverts commit 2d9a86f.
f43bc1f
to
63c0f64
Compare
checks for a script depending on a script multiple times | ||
""" | ||
warnings = [] | ||
for script in scripts: |
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.
Need to come back to this, reminder to myself
|
||
|
||
def cross_feed_dependencies(graph, gated_status: bool) -> list[tuple[str, 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.
Need to come back to this
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.
I tried it locally and it works great! Left a couple of small comments but I will check back when Max has finished his review
What
Adds a standalone plugin for evaluating script dependencies with a directed networkx graph.
checks for:
included functionality of normal plugins
Output
python logging levels for system information (
error
,warning
,info
)normal additive verbosity up to
-vv
for result output.Feed options
example call:
poetry run troubadix-dependency-graph ~/gb/vulnerability-tests/nasl --feed full --log info -vv
Execution Time
locally ~13 seconds
Why
When checking dependencies, it makes sense to analyse the whole feed, rather than just working on changed scripts. And working on the whole feed is easier with a standalone plugin that doesn't have to adhere to the Troubadix structure.
References
Checklist