Skip to content

Timeout parameter ignored #153

@ralfstuckert

Description

@ralfstuckert

Since version 0.5.0 the timeout parameter seems to be ignored (we run into a timeout after 5 min)

Setup looks like this:

    - name: Run Trivy vulnerability scanner
      uses: aquasecurity/trivy-action@0.6.0
      with:
        image-ref: ${{ secrets.CONTAINER_REGISTRY }}/${{ inputs.image-package }}/${{ inputs.image-name }}:${{ env.IMAGE_VERSION }}
        format: 'sarif'
        output: 'trivy-results.sarif'
        exit-code: '1'
        ignore-unfixed: true
        vuln-type: 'os'
        security-checks: 'vuln'
        severity: 'CRITICAL,HIGH'
        timeout: '30m'

However, if we pass the timeout via yaml config, it works:

    - name: Run Trivy vulnerability scanner
      uses: aquasecurity/trivy-action@0.6.0
      with:
        image-ref: ${{ secrets.CONTAINER_REGISTRY }}/${{ inputs.image-package }}/${{ inputs.image-name }}:${{ env.IMAGE_VERSION }}
        format: 'sarif'
        ...
        trivy-config: ./trivy.yaml

trivy.yaml

timeout: 30m

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions