Skip to content

bug: Trivy is failing to valid the app Helm chart due to missing secrets #2590

@WalterMoar

Description

@WalterMoar

Describe the Bug

When the analysis.yml workflow runs, the Trivy job is erroring when checking the Helm charts.

Expected Behaviour

When the analysis.yml workflow runs, the Trivy job should not produce an error.

Actual Behaviour

  1. The analysis.yml workflow runs and is "green" / success
  2. However, the Trivy job fails with the error:

ERROR [helm scanner] Failed to render Chart files file_path="charts/app" err="execution error at (quickstart-openshift/templates/secret.yaml:12:6): Secret %!s()-pguser-%!s() not found in namespace "

Steps To Reproduce

Steps to reproduce the behaviour:

  1. Look at the Trivy job in a recent run of Analysis

Screenshots

Image

Desktop (please complete the following information):

N/A

Additional context

Should the Trivy job be showing as "green" / success?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Parked

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions