Skip to content

Affected scripts#927

Open
NiklasHargarter wants to merge 2 commits into
mainfrom
affected_scripts
Open

Affected scripts#927
NiklasHargarter wants to merge 2 commits into
mainfrom
affected_scripts

Conversation

@NiklasHargarter
Copy link
Copy Markdown
Contributor

What

Adds a standalone that finds for a list of vts all vts that are affected if that script has any changes. They are idenfiied by having a script_dependency on the changed script or have a include with it.

Designed to work with existing pr qa workflow.
Input file works with the repo root paths output by the changed files diff command. -> "nasl/common/gsf/foo.bar"
Output file format is feed relative format -> "gsf/foo.nasl". Openvasnaslint action can work with either either format. Feed relative is output it is just simpler for the tool to output.

Why

References

Checklist

  • Tests

@NiklasHargarter NiklasHargarter requested a review from a team as a code owner February 26, 2026 12:22
@github-actions
Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA d9f7068.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@github-actions
Copy link
Copy Markdown

Conventional Commits Report

Type Number
Changed 1
Added 1

🚀 Conventional commits found.

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 26, 2026

Codecov Report

❌ Patch coverage is 80.32787% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.73%. Comparing base (6e03464) to head (d9f7068).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
troubadix/standalone_plugins/affected_scripts.py 80.32% 9 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #927      +/-   ##
==========================================
- Coverage   82.78%   82.73%   -0.05%     
==========================================
  Files         103      104       +1     
  Lines        3618     3679      +61     
  Branches      681      694      +13     
==========================================
+ Hits         2995     3044      +49     
- Misses        469      478       +9     
- Partials      154      157       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant