Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trivy ImageRef Required? #260

Open
rlove opened this issue Sep 7, 2023 · 1 comment
Open

Trivy ImageRef Required? #260

rlove opened this issue Sep 7, 2023 · 1 comment

Comments

@rlove
Copy link

rlove commented Sep 7, 2023

Is there a way to use Trivy without a docker image?
We just want to scan the terraform that is the given repository.

However in the action.yml the image-ref is marked as required.

@arxeiss
Copy link
Contributor

arxeiss commented Sep 11, 2023

It is not required actually. I have Github Actions extension in VS Code and it complains about it too.

But we don't use that and it works. So I think it should be changed to not-required actually.

trivy-config-scan:
    name: trivy config scan
    runs-on: ubuntu-latest
    steps:
        - name: Create .trivyignore file
          run: echo '${{ vars.TRIVY_IGNORE }}' > .trivyignore
        - uses: aquasecurity/trivy-action@0.11.2
          with:
              scan-type: config
              exit-code: '1'
              severity: HIGH,CRITICAL
              trivyignores: .trivyignore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants