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

Implementation of Wordpress plugins packages Extractor #363

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

Octaviusss
Copy link
Contributor

Pull request for the Wordpress plugins packages extractor.
Implemented:

  • Extractor implementation for Wordpress plugins packages;
  • Unit test implementation for extractor:
  • Integration of the extractor in the main tool;

@Octaviusss Octaviusss requested a review from vpasdf January 8, 2025 08:51
@Octaviusss Octaviusss requested a review from vpasdf February 5, 2025 16:28
wantResultMetric stats.FileRequiredResult
}{
{
name: "wp-content/plugins/foo/test.php file",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Make sure sub test names are formatted such that you can search for the escaped sub test name in code. I.e. spaces are not allowed.

@@ -81,4 +83,4 @@ SCALIBR supports extracting software package information from a variety of OS an
* SPDX SBOM descriptors
* CycloneDX SBOM descriptors

If you're a SCALIBR user and are interested in having it support new inventory types we're happy to accept contributions. See the docs on [how to add a new Extractor](/docs/new_extractor.md).
If you're a SCALIBR user and are interested in having it support new inventory types we're happy to accept contributions. See the docs on [how to add a new Extractor](/docs/new_extractor.md).
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this line changed in this PR? I guess not and it should not.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please revert this line if possible

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is because of a new line was removed here, but github doesn't show it for some reason. Still should be reverted though.

@@ -60,6 +60,7 @@ import (
"github.com/google/osv-scalibr/extractor/filesystem/language/ruby/gemspec"
"github.com/google/osv-scalibr/extractor/filesystem/language/rust/cargoauditable"
"github.com/google/osv-scalibr/extractor/filesystem/language/rust/cargolock"
"github.com/google/osv-scalibr/extractor/filesystem/language/wordpress/plugins"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Fix lint issues

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.

3 participants