CycloneDX / CycloneDX/cyclonedx-php-composer

configuration file

Open
#131 1 comment 2 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
PHP
Stars
87
Forks
7
PR merge metrics
No merged PRs in 30d

Description

benefit: have the config in a file, so no CLI parameters are needed

parameter defaults are read from the config-file, and may override system defaults.
parameters can still be overridden via CLI parameters

implementation details: use `extra` section of the composer file.
see https://getcomposer.org/doc/04-schema.md#extra

----

## acc / crit
- [ ] config overrides system defaults (therefore config file settings = presets)
- [ ] CLI params override any defaults/presets
- [ ] parameter type checks are (still) in place
- [ ] parameter plausibility checks are still in place
- [ ] config possibility is documented
(+ docs have hint, that this config can be used with the [gh-action] -- see https://github.com/CycloneDX/gh-php-composer-generate-sbom/issues/1)

[gh-action]: https://github.com/CycloneDX/gh-php-composer-generate-sbom

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.