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

Some top-level items of config.yml are not configurable in the server yet #1361

Open
sschuberth opened this issue Nov 4, 2024 · 0 comments
Labels
config Issues related to the server configuration. enhancement New feature or request.

Comments

@sschuberth
Copy link
Contributor

The server does not make use of ORT's config.yml. As such all configuration items from OrtConfiguration need to be mapped to something inside JobConfigurations. However, some top-level items of config.yml are currently missing from that model. At a quick glance, these seem to be missing

/**
 * A flag to indicate whether authors should be considered as copyright holders.
 */
val addAuthorsToCopyrights: Boolean = false,

/**
 * A set with the names of environment variables that are explicitly allowed to be passed to child processes,
 * even if they are matched by one of the [deniedProcessEnvironmentVariablesSubstrings].
 * See [EnvironmentVariableFilter] for further details.
 */
val allowedProcessEnvironmentVariableNames: Set<String> = EnvironmentVariableFilter.DEFAULT_ALLOW_NAMES,

/**
 * A set with substrings to filter out environment variables before creating child processes to prevent that those
 * processes can access sensitive information. See [EnvironmentVariableFilter] for further details.
 */
val deniedProcessEnvironmentVariablesSubstrings: Set<String> = EnvironmentVariableFilter.DEFAULT_DENY_SUBSTRINGS,

/**
 * Enable the usage of project-local package configurations from the [RepositoryConfiguration]. If set to true,
 * apply package configurations from a local .ort.yml file before applying those specified via the command line i.e.
 * configurations from the .ort.yml take precedence.
 */
val enableRepositoryPackageConfigurations: Boolean = false,

/**
 * Enable the usage of project-local package curations from the [RepositoryConfiguration]. If set to true, apply
 * package curations from a local .ort.yml file before applying those specified via the command line i.e. curations
 * from the .ort.yml take precedence.
 */
val enableRepositoryPackageCurations: Boolean = false,

/**
 * The license file patterns.
 */
val licenseFilePatterns: LicenseFilePatterns = LicenseFilePatterns.DEFAULT,

/**
 * The threshold from which on issues count as severe. Severe issues cause the status code on exit of the CLI
 * commands to be at least [ORT_FAILURE_STATUS_CODE].
 */
val severeIssueThreshold: Severity = Severity.WARNING,

/**
 * The threshold from which on rule violations count as severe. Severe rule violations cause the status code on exit
 * of the CLI commands to be at least [ORT_FAILURE_STATUS_CODE].
 */
val severeRuleViolationThreshold: Severity = Severity.WARNING,
@sschuberth sschuberth added enhancement New feature or request. config Issues related to the server configuration. labels Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config Issues related to the server configuration. enhancement New feature or request.
Projects
None yet
Development

No branches or pull requests

1 participant