Skip to content

Add: Restructure feed-filter and add dependency filter functionality#2231

Open
Kraemii wants to merge 1 commit into
mainfrom
dependecie-filter
Open

Add: Restructure feed-filter and add dependency filter functionality#2231
Kraemii wants to merge 1 commit into
mainfrom
dependecie-filter

Conversation

@Kraemii

@Kraemii Kraemii commented Jun 4, 2026

Copy link
Copy Markdown
Member

This restructures the original feed-filter into separate files. Additionally a dependency filter is added. It does not filter based on builtin functions but on dependencies. A single script is given, and all include and script_dependencies are checked. From here out, the collected scripts can be copied into a specified directory.

SC-1583

@Kraemii Kraemii requested a review from a team as a code owner June 4, 2026 08:39
@github-actions

github-actions Bot commented Jun 4, 2026

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 e156407.
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 github-actions Bot added the minor_release creates a minor release label Jun 4, 2026
@Kraemii Kraemii force-pushed the dependecie-filter branch from 957ebd8 to 3292129 Compare June 4, 2026 11:39
@github-actions github-actions Bot added minor_release creates a minor release and removed minor_release creates a minor release labels Jun 4, 2026
@Kraemii Kraemii force-pushed the dependecie-filter branch from 3292129 to 0b03bc9 Compare June 8, 2026 07:27
@github-actions github-actions Bot added minor_release creates a minor release and removed minor_release creates a minor release labels Jun 8, 2026
@Tehforsch

Copy link
Copy Markdown
Contributor

Before I review, could you tell me what the motivation is behind this change? I understand that now instead of calling feed-filter directly, we call feed-filter <set of nasl files> (simplified) and then get those scripts along with their dependencies? Is this expected to be the default use case (as opposed to filtering the entire feed)? If no, we should probably make this an optional argument instead feed-filter --scripts <set of nasl files>

@Kraemii Kraemii force-pushed the dependecie-filter branch from 0b03bc9 to e5aa227 Compare June 10, 2026 06:50
@github-actions github-actions Bot added minor_release creates a minor release and removed minor_release creates a minor release labels Jun 10, 2026
@Kraemii Kraemii force-pushed the dependecie-filter branch from e5aa227 to f31d116 Compare June 10, 2026 07:37
@github-actions github-actions Bot added minor_release creates a minor release and removed minor_release creates a minor release labels Jun 10, 2026
@Kraemii Kraemii force-pushed the dependecie-filter branch from f31d116 to 63d8be0 Compare June 10, 2026 07:54
@github-actions github-actions Bot added minor_release creates a minor release and removed minor_release creates a minor release labels Jun 10, 2026
@Kraemii

Kraemii commented Jun 10, 2026

Copy link
Copy Markdown
Member Author

We need this in order to pursuit the next step for the rust only scanner. With this we can extract single scripts, including their dependencies. After that we can check, which builtin functions are missing in order to be able to execute this stack. Also making adjustments, removing not needed dependencies for testing, removing unwanted functionality is much easier within a the extracted smaller feed. In general testing becomes much easier and faster.

This restructures the original feed-filter into separate files.
Additionally a dependency filter is added. It does not filter based on builtin functions
but based on given scipts and their dependencies.
@Kraemii Kraemii force-pushed the dependecie-filter branch from 63d8be0 to e156407 Compare June 11, 2026 09:48
@github-actions github-actions Bot added minor_release creates a minor release and removed minor_release creates a minor release labels Jun 11, 2026
Comment on lines +39 to +44
enum Command {
/// Filter feed based on built-in function coverage.
BuiltinFilter(BuiltinFilterArgs),
/// Filter feed based on given root scripts and their dependencies.
DepFilter(DepFilterArgs),
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that we call the binary as feed-filter already, I feel like we shouldn't repeat the filter word here.

Maybe the variants could be called
ByBuiltin and byDependency or something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor_release creates a minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants