Skip to content
Snippets Groups Projects

feat: Standardize configs

6 files
+ 40
24
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -14,15 +14,28 @@ package org.eclipsefoundation.cve.config;
import io.smallrye.config.ConfigMapping;
import io.smallrye.config.WithDefault;
@ConfigMapping(prefix = "eclipse.gitlab.cve-project")
public interface GitlabCveLoaderConfig {
/**
* Loads all Advisories configs. Contains the Gitlab PAT, Gitlab project id,
* filepath of desired file, and project branch name.
*
* The 'gitlabToken' and 'gitlabProjectId' can be modified via the
* '/config/application/secret.properties' file.
* The 'filePath' and 'branchName' can be modified via the
* '/main/resources/application.properties' file.
* For testing, all need mocked/stubbed values via the
* '/test/resources/application.properties' file.
*/
@ConfigMapping(prefix = "eclipse.cve.advisories")
public interface AdvisoriesConfig {
String gitlabToken();
Integer gitlabProjectId();
@WithDefault("advisories")
String filePath();
Integer projectId();
@WithDefault("main")
String ref();
String branchName();
String token();
}
Loading