AWS CodeBuild Reports status "Incomplete"

0

Hi,

I am testing report in AWS CodeBuild, and I can't understand why the report is always in "Incomplete" status?

Buildspec:

version: 0.2

phases:
  install:
    runtime-versions:
      docker: 20
      
  pre_build:
    commands:
      - echo "Installing Trivy..."
      - rpm -ivh https://github.com/aquasecurity/trivy/releases/download/v0.18.3/trivy_0.18.3_Linux-64bit.rpm


  build:
    commands:
      - echo "Scanning Docker image for vulnerabilities..."
      - trivy image -f json -o trivy_results.json nginx
reports:
  trivy-scan:
    files:
      - 'trivy_results.json'
    base-directory: '/'
    discard-paths: no

Report status:

Enter image description here

I checked permissions are fine:

"Effect": "Allow",
            "Action": [
                "codebuild:CreateReportGroup",
                "codebuild:CreateReport",
                "codebuild:UpdateReport",
                "codebuild:BatchPutTestCases",
                "codebuild:BatchPutCodeCoverages"
            ],
1 Risposta
0
Risposta accettata

Hello.

Are the paths listed in buildspec.yml correct?
https://docs.aws.amazon.com/codebuild/latest/userguide/test-report.html

A problem with the configuration of the report group that specifies this report's test cases. For example, the path to the test cases under the report group in the buildspec file might be incorrect.

profile picture
ESPERTO
con risposta 9 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande