Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Configuration via environment variables #5748

Open
meiswjn opened this issue Jun 1, 2023 · 3 comments
Open

Configuration via environment variables #5748

meiswjn opened this issue Jun 1, 2023 · 3 comments

Comments

@meiswjn
Copy link

meiswjn commented Jun 1, 2023

Is your feature request related to a problem? Please describe.
We have hundreds of different pipelines where we use DependencyCheck. When we want to disable a feature centrally, for example the Sonartype OSS Index, we need to change it in every single pipeline. It would be great if it was possible to read settings from environment variables in addition to CLI arguments / tool config. This would allow us to change it on the spot for everyone.

Describe the solution you'd like
In addition to existing options, read the config values from the environment. Example:
--disableOssIndex -> DISABLE_OSS_INDEX = true

Describe alternatives you've considered
Using a properties file is not as straightforward and simple to deploy, as it also needs to be adapted in every pipeline.

Thanks for providing this tool!

@biennd279
Copy link

I have the same problem, so I must implement use Bash to generate Property File and use this.

@marcelstoer
Copy link
Contributor

@biennd279 So you set env variables which the Bash script then turns into a properties file?

@marcelstoer
Copy link
Contributor

Using a properties file is not as straightforward and simple to deploy

@meiswjn According to https://jeremylong.github.io/DependencyCheck/dependency-check-cli/arguments.html there's no default value for --propertyfile. Hence, even if you had a properties file, you'd still need to add --propertyfile to your pipelines to point to said file, correct?

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants