relgap config
Configuration is layered; later layers win:
text
defaults < user file < project file < env (RELGAP_*) < flags
User file: $XDG_CONFIG_HOME/relgap/config.yaml (~/.config/relgap/config.yaml)
Project file: .relgap.yaml, found by walking up from the working directory to the git root
Env vars: RELGAP_<KEY> with dots and dashes as underscores, e.g. RELGAP_GITHUB_CONCURRENCY=4.
Use __ to mark nesting explicitly (RELGAP_SCAN__DETECTORS__CI_ACTIONS=true).
Only scalars and string lists can be set; lists are comma-separated.
Maps and lists of objects need a file. An unknown RELGAP_* variable is
ignored with a warning.Unknown keys and wrong types are errors (exit 2), reported with file:line:column. 'relgap config init' writes a commented file to start from. Every key, its default and its variable are listed at https://relgap.sasskovacs.dev/reference/config.
Usage
sh
relgap config <command>The global flags work with every command.
Examples
sh
relgap config init
relgap config show --sources
relgap config validate .relgap.yamlSubcommands
| Command | Description |
|---|---|
| relgap config init | Write a commented config file |
| relgap config path | Print the config file locations relgap reads |
| relgap config show | Print the effective configuration |
| relgap config validate | Validate config files against the schema |