Skip to content

Add plugins#133

Open
abdulahmad307 wants to merge 94 commits intomainfrom
abdul/test-plugins
Open

Add plugins#133
abdulahmad307 wants to merge 94 commits intomainfrom
abdul/test-plugins

Conversation

@abdulahmad307
Copy link
Contributor

@abdulahmad307 abdulahmad307 commented Feb 18, 2026

This is a very minimal proof of concept around the idea of using plugins to make additional scans and tests modular. Looking for feedback on general approach, pros/cons, etc...

this currently works with the plugins defined in the scanner repo. I'm still working on making this work with plugins defined in the workflow repo (the repo that uses the action). There might be some issues with using absolute paths with the dynamic import() feature - but i'm still testing.

I've taken @lindseywild’s reflow test and added it as a plugin for testing. the idea is each plugin lives under a new folder under the scanner-plugins folder (which lives under .github like actions). and each plugin has a primary index.js file, which we will use to interface with the plugin.

all of this is just how I've built it as a proposal - we can tweak naming/folder-structure, etc... if we feel something else makes more sense

@@ -0,0 +1,32 @@
export default async function test({ page, addFinding, url } = {}) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason this isn't a .ts file?

- restructure findForUrl code to accound for upcoming changes
Copy link
Contributor

@lindseywild lindseywild left a comment

Choose a reason for hiding this comment

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

Apologies for all the grammar/docs nits!

I also think we are waiting on two additional items:

  1. How to make sure screenshots are captured if the input is turned on,
  2. Allowing users to include JS or TS files and updating docs as needed

After that, this looks good!

- pr feedback changes
- add options arg to 'addFinding' function
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.

5 participants