-
Notifications
You must be signed in to change notification settings - Fork 0
Adds skip snippet and scanoss setting feature #28
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
Conversation
d8d3e3b
to
b4b18a1
Compare
export const RUNTIME_CONTAINER = tl.getInput('runtimeContainer') || "ghcr.io/scanoss/scanoss-py:v1.18.0"; | ||
export const SKIP_SNIPPETS = tl.getInput('skipSnippets') === 'true'; | ||
export const SCAN_FILES = tl.getInput('scanFiles') === 'true'; | ||
export const SCANOSS_SETTINGS = tl.getInput('scanossSettings') === 'true'; |
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.
Here maybe we should do a check for the RUNTIME_CONTAINER
We should only allow to pass SCANOSS_SETTINGS
and SETTINGS_FILE_PATH
if the scanoss.py version supports it
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.
Every Azure task has pingued an scanoss-py version. We shouldn´t have to check for the RUNTIME_CONTAINER
private buildArgs(): Array<string> { | ||
return ['run', '-v', `${REPO_DIR}:/scanoss`, RUNTIME_CONTAINER, 'inspect', 'undeclared', '--input', | ||
OUTPUT_FILEPATH, '--format', 'md', | ||
...(!SCANOSS_SETTINGS ? ['--sbom-format', 'legacy']: []) // Sets sbom format output to legacy if SCANOSS_SETTINGS is not true |
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.
What happens if default SBOM_FILEPATH
does not exists and SCANOSS_SETTINGS
is false? We should pass --sbom-format
anyways?
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.
If the SBOM_FILEPATH has a default value set. If the file is not found and the SCANOSS_SETTINGS is set to false, we use the legacy sbom format
258488b
to
63ca94c
Compare
What