Skip to content

fix: Disable OSS Index if its credentials are missing#7963

Merged
jeremylong merged 2 commits intodependency-check:mainfrom
nMoncho:fix/disable_oss_index_on_missing_creds
Sep 24, 2025
Merged

fix: Disable OSS Index if its credentials are missing#7963
jeremylong merged 2 commits intodependency-check:mainfrom
nMoncho:fix/disable_oss_index_on_missing_creds

Conversation

@nMoncho
Copy link
Copy Markdown
Contributor

@nMoncho nMoncho commented Sep 23, 2025

Description of Change

This disables the OSS Index analyzer if no credentials are provided. Feel free to drop this PR if it doesn't make sense.

Related issues

Relates to #7920

Have test cases been added to cover the new functionality?

yes

@boring-cyborg boring-cyborg bot added core changes to core documentation site documentation tests test cases labels Sep 23, 2025
@nMoncho nMoncho force-pushed the fix/disable_oss_index_on_missing_creds branch from 3d70d79 to e0d9151 Compare September 24, 2025 07:39
@AndreVirtimo
Copy link
Copy Markdown

I hope this fix will be merged soon 🤞

@nMoncho nMoncho force-pushed the fix/disable_oss_index_on_missing_creds branch from e0d9151 to f42ddfb Compare September 24, 2025 08:20
@marcelstoer marcelstoer self-requested a review September 24, 2025 09:53
Copy link
Copy Markdown
Collaborator

@marcelstoer marcelstoer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jeremylong
Copy link
Copy Markdown
Collaborator

This is a better approach than what I had half completed yesterday - Thanks for the PR!

Copy link
Copy Markdown
Collaborator

@jeremylong jeremylong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jeremylong jeremylong added this to the 12.1.6 milestone Sep 24, 2025
@jeremylong jeremylong merged commit 22ecc0b into dependency-check:main Sep 24, 2025
5 checks passed
kwin added a commit to apache/jackrabbit-filevault that referenced this pull request Sep 25, 2025
@M4mu5qu3
Copy link
Copy Markdown

So, using https://github.com/dependency-check/DependencyCheck/releases/tag/v12.1.6 there is no way to enforce that credentials are passed? I mean, having an error instead of auto-disable the feature? I want my dep-check to be consistent so I don't want that a job can arbitrary omit the credentials to skip the OSS index check. Is there a way?

@jeremylong
Copy link
Copy Markdown
Collaborator

@M4mu5qu3 No, with the current implementation, there is no easy way to identify when the credentials were not supplied within the core dependency-check code.

kwin added a commit to Netcentric/accesscontroltool that referenced this pull request Oct 2, 2025
kwin added a commit to Netcentric/accesscontroltool that referenced this pull request Oct 2, 2025
joerghoh pushed a commit to apache/jackrabbit-filevault that referenced this pull request Oct 8, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 31, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

core changes to core documentation site documentation tests test cases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants