Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

bitbucket-dependency-scanner failing with warn ossIndexPassword used on the command line

Dercilio Fontes
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 6, 2025

Hello,

 

We gave a pipeline running `atlassian/bitbucket-dependency-scanner:0.8.0` and it started failing with the following warning. 

I tried some ways to pass the `--propertyfile`, but they failed.

Is there any guidance on how to do that?

Could we pass a variable like is done for `NVD_API_KEY`?


Error message:

✖ Dependency scan failed. The result status code: 14, [WARN] ossIndexPassword used on the command line, consider moving the password to a properties file using the key `analyzer.ossindex.password` and using the --propertyfile argument instead

How it is implemented:

 - step:
name: Dependency Vulnerability Scan
script:
- npm ci
- pipe: atlassian/bitbucket-dependency-scanner:0.8.0
variables:
NVD_API_KEY: $NVD_API_KEY
EXTRA_ARGS:
- '--ossIndexUsername=$OSS_INDEX_USERNAME'
- '--ossIndexPassword=$OSS_INDEX_PASSWORD'
- '--failOnCVSS=4' # Medium

 

1 answer

0 votes
Dercilio Fontes
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 17, 2025

Update.
The error was caused by a Node Audit analysis, not the warning about the OSS INDEX username/password.


[WARN] An error occurred while analyzing 'path/package-lock.json' (Node Audit Analyzer): Could not perform Node Audit analysis. Invalid payload submitted to Node Audit API.
...
[ERROR] Could not perform Node Audit analysis. Invalid payload submitted to Node Audit API.
[ERROR] Unable to read yarn audit output.


Somehow, the package-lock.json was invalid. It seems it didn’t like the sfw package installed as a dev dependency. It was removed, and also I deleted de node_modules and the package-lock.json and ran npm install again. It was fixed.


It still has the warning to use --propertyfile, but I couldn't find a way to apply it properly.

[WARN] ossIndexPassword used on the command line, consider moving the password to a properties file using the key `analyzer.ossindex.password` and using the --propertyfile argument instead

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events