diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 30dd64d..ffc19e8 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -84,14 +84,14 @@ jobs: - name: Run chart-testing (list-changed) id: list-changed run: | - changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) + ct --help || true; changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) if [[ -n "$changed" ]]; then echo "changed=true" >> "$GITHUB_OUTPUT" fi - name: Run chart-testing (lint) if: steps.list-changed.outputs.changed == 'true' - run: echo $PATH; which ct; ct version; ct lint --target-branch ${{ github.event.repository.default_branch }} + run: ct --help || true; ct lint --target-branch ${{ github.event.repository.default_branch }} # https://github.com/aquasecurity/trivy-action#scan-ci-pipeline-w-trivy-config trivy: