Skip to content

Add 'if: always()' to summary step in Trivy scan action #2789

@coderabbitai

Description

@coderabbitai

Context

Follow-up from PR #2788 (#2788)
Requested by: @jiridanek

Description

The 'Add report to job summary' step in .github/actions/trivy-scan-action/action.yml (lines 127-136) should have if: always() added to ensure the summary is added even when the scan step fails.

Currently, the step appropriately warns when the report file is not found rather than failing, which is useful when the scan step fails. However, without if: always(), this step won't run if previous steps fail.

Location

File: .github/actions/trivy-scan-action/action.yml
Lines: 127-136

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions