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

trivyignores file not working #442

Open
plumeriia opened this issue Dec 23, 2024 · 0 comments
Open

trivyignores file not working #442

plumeriia opened this issue Dec 23, 2024 · 0 comments

Comments

@plumeriia
Copy link

Part of my workflow:

      - name: install trivy
        uses: aquasecurity/[email protected]
        with:
          version: v0.56.2

      - name: run trivy vulnerability scanner in fs mode
        uses: aquasecurity/[email protected]
        id: trivy-check
        with:
          scan-type: fs
          scan-ref: .
          format: sarif
          exit-code: 0
          output: trivy-results.sarif
          skip-setup-trivy: true
          trivyignores: .trivyignore.yaml
        env:
          TRIVY_DB_REPOSITORY: "public.ecr.aws/aquasecurity/trivy-db:2"

.trivyignore.yaml file(it is located in the / of the repository)

secrets:
  - id: slack-web-hook
    paths:
      - "zaa"
  - id: github-fine-grained-pat
    paths:
      - "zaa"

The check sees a file containing exceptions
image

but zaa file keeps showing up in report
image

I don't have such problems when running locally, the ignore file works correctly, the problems start when I try to use the action

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

1 participant