8000 trivyignores file not working · Issue #442 · aquasecurity/trivy-action · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
trivyignores file not working #442
@plumeriia

Description

@plumeriia

Part of my workflow:

      - name: install trivy
        uses: aquasecurity/setup-trivy@v0.2.1
        with:
          version: v0.56.2

      - name: run trivy vulnerability scanner in fs mode
        uses: aquasecurity/trivy-action@0.29.0
        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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0