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

feat(detect): Add support for Detect 10 #5224

Merged
merged 10 commits into from
Jan 17, 2025
15 changes: 13 additions & 2 deletions cmd/detectExecuteScan_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 13 additions & 2 deletions resources/metadata/detectExecuteScan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@
param: container/repositoryPassword
- name: useDetect8
description:
"This flag enables the use of the supported version 8 of the Detect Script instead of v9"
"This flag enables the use of the supported version 8 of the Detect Script instead of default version"
CCFenner marked this conversation as resolved.
Show resolved Hide resolved
aliases:
- name: detect/useDetect8
type: bool
Expand All @@ -666,7 +666,7 @@
default: false
- name: useDetect9
description:
"This flag enables the use of the supported version 9 of the Detect Script instead of v8"
"This flag enables the use of the supported version 9 of the Detect Script instead of default version"
CCFenner marked this conversation as resolved.
Show resolved Hide resolved
aliases:
- name: detect/useDetect9
type: bool
Expand All @@ -675,6 +675,17 @@
- STAGES
- STEPS
default: false
- name: useDetect10
description:
"This flag enables the use of the supported version 10 of the Detect Script"
CCFenner marked this conversation as resolved.
Show resolved Hide resolved
aliases:
- name: detect/useDetect10
type: bool
scope:
- PARAMETERS
- STAGES
- STEPS
default: true

Check failure on line 688 in resources/metadata/detectExecuteScan.yaml

View workflow job for this annotation

GitHub Actions / lint

688:22 [trailing-spaces] trailing spaces
CCFenner marked this conversation as resolved.
Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

This is not used in code, why define it here? If you would like to document the default version, I suggest to do that in the initial step description.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if we make useDetect9 as default then user will not be able to use detect 10 version as by default 9 version will run as always if parameter is not passed.

outputs:
resources:
- name: influx
Expand Down
Loading