-
Notifications
You must be signed in to change notification settings - Fork 318
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
feat(reporter)!: Support secrets in reporter options #7837
feat(reporter)!: Support secrets in reporter options #7837
Conversation
b56897b
to
a8727df
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7837 +/- ##
============================================
- Coverage 67.24% 67.05% -0.19%
+ Complexity 2044 2042 -2
============================================
Files 356 356
Lines 17050 17043 -7
Branches 2439 2444 +5
============================================
- Hits 11465 11429 -36
- Misses 4567 4594 +27
- Partials 1018 1020 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically LGTM, but I'd also like @mnonnenmacher's opinion.
plugins/reporters/cyclonedx/src/funTest/kotlin/CycloneDxReporterFunTest.kt
Outdated
Show resolved
Hide resolved
plugins/reporters/evaluated-model/src/main/kotlin/EvaluatedModelReporter.kt
Outdated
Show resolved
Hide resolved
Some reporter implementations need access to secrets. Therefore, align the `ReporterConfiguration` class with the configuration classes for Advisor and Scanner which use `PluginConfiguration` to distinguish between plain options and secrets. Signed-off-by: Oliver Heger <[email protected]>
a8727df
to
d87ac7e
Compare
@@ -50,6 +50,7 @@ import org.ossreviewtoolkit.model.PackageCuration | |||
import org.ossreviewtoolkit.model.Severity | |||
import org.ossreviewtoolkit.model.config.CopyrightGarbage | |||
import org.ossreviewtoolkit.model.config.NotifierConfiguration | |||
import org.ossreviewtoolkit.model.config.PluginConfiguration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit should refer to / auto-close #7833?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did this for the 2nd commit.
In FossIdReporter, read the FossID user and API key from the secrets of the `PluginConfiguration` rather than from the plain options. Fixes oss-review-toolkit#7833. Signed-off-by: Oliver Heger <[email protected]>
d87ac7e
to
84990c7
Compare
Some reporter implementations need access to secrets. Therefore, align the
ReporterConfiguration
class with the configuration classes for Advisor and Scanner which usePluginConfiguration
to distinguish between plain options and secrets.