Skip to content

Errors not being printed to log, even in actions debug mode #490

@kevinleturc

Description

@kevinleturc

I just tried to give a VEX documents to the scan-action and it does not have the same behavior than the command line.

So far I encounter two issues when using VEX documents with the scan-action:

  • the output file is empty
  • the action could fail with Failed minimum severity level. Found vulnerabilities with level 'high' or higher message whereas no high or higher vuln are found.

Note that running the same command than the action is producing the expected result.

My GitHub workflow is as below and can be found there with additional information: kevinleturc/github-action-issues#1

    steps:
      - name: 'Scan Docker image with Grype'
        uses: anchore/scan-action@v6
        with:
          image: alpine:3.22
          severity-cutoff: high
          by-cve: true
          vex: vex.json
          output-format: table
          output-file: grype-alpine-vex.txt
          grype-version: v0.96.0

      - name: Print result file
        if: always()
        run: |
          echo "Content of Grype output file with VEX file:"
          cat grype-alpine-vex.txt

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions