Skip to content

feat: dependency-check-plugin#799

Open
gonuguntlakavya wants to merge 5 commits intofinos:mainfrom
gonuguntlakavya:dependency-check-plugin
Open

feat: dependency-check-plugin#799
gonuguntlakavya wants to merge 5 commits intofinos:mainfrom
gonuguntlakavya:dependency-check-plugin

Conversation

@gonuguntlakavya
Copy link

A plugin that uses dependency checker to check for the usage of vulnerable dependencies in git pushes.
This PR is being submitted as part of citi finos hackathon

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 15, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@netlify
Copy link

netlify bot commented Nov 15, 2024

Deploy Preview for endearing-brigadeiros-63f9d0 canceled.

Name Link
🔨 Latest commit bcad8c4
🔍 Latest deploy log https://app.netlify.com/sites/endearing-brigadeiros-63f9d0/deploys/674d5032f5d40c00087343f2

@gonuguntlakavya gonuguntlakavya changed the title Dependency check plugin feat: dependency-check-plugin Nov 15, 2024
@06kellyjac 06kellyjac added the citi-hackathon Related to the Citi India Hackathon (Oct '24) label Sep 25, 2025
Copy link
Contributor

@jescalada jescalada left a comment

Choose a reason for hiding this comment

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

@gonuguntlakavya Thanks for the contribution!

Looks good so far, just a few comments on the implementation.

},
"dependencies": {
"@finos/check-dependency-vulnerabilities": "file:plugins/check-dependency-vulnerabilities/finos-check-dependency-vulnerabilities-0.1.0-alpha.0.tgz",
"@finos/git-proxy-plugin-samples": "file:plugins/git-proxy-plugin-samples/finos-git-proxy-plugin-samples-0.1.0.tgz",
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we should use references to the filesystem in package.json. As shown in the plugin docs, we can add the plugin filename to the plugins config instead.

"proxyUrl": { "type": "string" },
"cookieSecret": { "type": "string" },
"sessionMaxAgeHours": { "type": "number" },
"dependencyVulnThreshold": { "type": "string" },
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be an entry within plugins, not a top-level config entry.

Copy link
Contributor

Choose a reason for hiding this comment

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

This should probably be moved to plugins/git-proxy-sample-plugins since we don't necessarily want to include it in the base GitProxy setup.

"exports": {
".": "./checkDependencyVuln.js"
},
"dependencies": {
Copy link
Contributor

Choose a reason for hiding this comment

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

dependency-check should be added to the plugin dependencies, rather than the parent repo since the library won't be used outside the plugin.

Copy link
Contributor

Choose a reason for hiding this comment

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

Would be great to run this through an LLM for fixing typos 👍🏼

@kriswest kriswest added good first issue Good for newcomers labels Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

citi-hackathon Related to the Citi India Hackathon (Oct '24) feature good first issue Good for newcomers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants