Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eclipsefdn-cve-api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Foundation
IT
APIs
eclipsefdn-cve-api
Merge requests
!31
feat: Standardize configs
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
feat: Standardize configs
zacharysabourin/eclipsefdn-cve-api:zacharysabourin/main/32
into
main
Overview
0
Commits
2
Changes
6
Merged
Zachary Sabourin
requested to merge
zacharysabourin/eclipsefdn-cve-api:zacharysabourin/main/32
into
main
2 years ago
Overview
0
Commits
2
Changes
6
Expand
Resolves
#32 (closed)
0
0
Merge request reports
Compare
main
version 1
780544ec
2 years ago
main (base)
and
latest version
latest version
5129d62f
2 commits,
2 years ago
version 1
780544ec
1 commit,
2 years ago
6 files
+
40
−
24
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
src/main/java/org/eclipsefoundation/cve/config/
GitlabCveLoader
Config.java
→
src/main/java/org/eclipsefoundation/cve/config/
Advisories
Config.java
+
19
−
6
Options
@@ -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