Skip to content
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

Failed upload SBOM file [trivy.json]: Request failed with status code 400 #1257

Open
finchr opened this issue Mar 22, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@finchr
Copy link

finchr commented Mar 22, 2024

Bug description

Hi, I get the following error when attempting to run a sbom upload, any help would be appreciated!

$ DD_SERVICE=api DD_ENV=dev datadog-ci sbom upload --debug trivy.json
Processing file trivy.json
File is a valid CycloneDX 1.5 file
license for component anyio not found
license for component asgiref not found
license for component asttokens not found
license for component atomicwrites not found
license for component attrs not found
license for component auth0-python not found
license for component boto3-stubs not found
license for component boto3 not found
license for component botocore-stubs not found
license for component botocore not found
license for component bytecode not found
license for component cattrs not found
license for component certifi not found
license for component cffi not found
license for component charset-normalizer not found
license for component click not found
license for component colorama not found
license for component coverage not found
license for component cryptography not found
license for component ddsketch not found
license for component ddtrace not found
license for component debugpy not found
license for component devtools not found
license for component envier not found
license for component exceptiongroup not found
license for component executing not found
license for component fastapi not found
license for component greenlet not found
license for component h11 not found
license for component haversine not found
license for component httpcore not found
license for component httpx not found
license for component idna not found
license for component iniconfig not found
license for component JSON-log-formatter not found
license for component jsonschema not found
license for component mypy-boto3-sqs not found
license for component packaging not found
license for component pluggy not found
license for component protobuf not found
license for component psycopg2 not found
license for component py not found
license for component pycparser not found
license for component pydantic not found
license for component PyJWT not found
license for component pyparsing not found
license for component pyrsistent not found
license for component pytest-cov not found
license for component pytest not found
license for component python-dateutil not found
license for component python-dotenv not found
license for component python_multipart not found
license for component requests not found
license for component six not found
license for component sniffio not found
license for component SQLAlchemy-Utils not found
license for component SQLAlchemy not found
license for component starlette not found
license for component tenacity not found
license for component time-machine not found
license for component tomli not found
license for component types-awscrt not found
license for component types-cryptography not found
license for component types-s3transfer not found
license for component typing_extensions not found
license for component urllib3 not found
license for component uvicorn not found
license for component xmltodict not found
Uploading SBOM report in trivy.json
❌ Failed upload SBOM file [trivy.json]: Request failed with status code 400
API status code: 400

Describe what you expected

The command would run without a 400 error.

Steps to reproduce the issue

export DD_API_KEY=xxxx
export DD_APP_KEY=yyyy
export DD_SITE="us5.datadoghq.com"
DD_SERVICE=api DD_ENV=dev datadog-ci sbom upload --debug trivy.json

Additional context

  • debian 12, MacOs 13.2.1
  • node v18.14.1
  • npm 9.3.1

Command

None

@finchr finchr added the bug Something isn't working label Mar 22, 2024
@dastrong
Copy link
Contributor

👋 Hey @finchr, could you please try one of these (1) install the Datadog GitHub App and upload again (2) upload the results from your default branch

@dastrong dastrong self-assigned this Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants