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

Request for option for the Visual Studio IDE plugin to run engines by license #4

Closed
hakksawwcp opened this issue May 4, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@hakksawwcp
Copy link

hakksawwcp commented May 4, 2023

Spectral is limited to run based on assets and executions, so there are parameters for its execution that allows a developer to run unlimited IAC scans. Also, some users may only be interested in seeing returns for secrets, IAC and now OpenSource seperately.

But the IDE appears to always execute IAC and secrets.

Request is to allow for the following as selectable scan types:
--engines iac
--engines secrets
--engines oss

And the whole shebang:
--engines secrets,iac,oss

At present, the invocation is hardcoded in:
spectral-agent-service.ts

public scan(scanPath: string): Promise {
return new Promise(async (resolve, reject) => {
const dsn = await SecretStorageService.getInstance().get(SPECTRAL_DSN)
const outputFileName = 'output.txt'
const spectralArgs = [
'--nobanners',
'scan',
'--include-tags',
'base,iac',
'--nosend',
'--ok',
'--internal-output',
outputFileName,
]

@guylev008 guylev008 added the enhancement New feature or request label May 9, 2023
@guylev008
Copy link
Collaborator

Hi @hakksawwcp
It's on our roadmap. Would you like to open a PR with a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants