-
Notifications
You must be signed in to change notification settings - Fork 532
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
feat: monitor cpp projects #1520
Conversation
4386715
to
68a2400
Compare
@@ -8,7 +8,7 @@ export async function getExtraProjectCount( | |||
options: Options, | |||
inspectResult: pluginApi.InspectResult, | |||
): Promise<number | undefined> { | |||
if (options.docker) { | |||
if (options.docker || options.source) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I will add a test also for getExtraProjectCount
it's not being tested at all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ added for this functionality
68a2400
to
9362bbb
Compare
@@ -5,7 +5,7 @@ import { Ecosystem, EcosystemPlugin } from './types'; | |||
const EcosystemPlugins: { | |||
readonly [ecosystem in Ecosystem]: EcosystemPlugin; | |||
} = { | |||
cpp: cppPlugin, | |||
cpp: cppPlugin as EcosystemPlugin, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added this cast in order to avoid TS crying on ScanResult types - cpp-plugin expect only GitTarget while CLI an union of GitTarget | ContainerTarget
.
To be honest I do not like this casting neither the as any
below - we need decide how do we want proceed here also keep plugins in sync with EcosystemPlugin interface
I believe worth move it to its own lib
29cafe8
to
68da62c
Compare
test/ecosystems.spec.ts
Outdated
name: 'snyk', | ||
target: { | ||
branch: 'feat/monitor-cpp-projects', | ||
remoteUrl: 'git@github.com:snyk/snyk.git', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to relax this assertion - so that it still works when we merge to master!
68da62c
to
63f9977
Compare
f88292f
to
90d7962
Compare
@@ -0,0 +1,207 @@ | |||
import * as fs from 'fs'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once the number of ecosystems increases we can create a sub-folder foreach
3b4fbad
to
ee26d57
Compare
ee26d57
to
3a91100
Compare
🎉 This PR is included in version 1.426.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What does this PR do?
Monitor C/C++ projects
Using new release of snyk-cpp-plugin that adds target and project name. Sending C/C++ fingerprints to Snyk to be saved as a project and monitored over time.