Skip to content

Use Trivy for infra code scanning #1015

@doshitan

Description

@doshitan

Context

Trivy is currently used for application image vulnerability scans. It supports additional scanning, including of infrastructure code. Formerly tfsec was used for part of this, but tfsec scope was rolled into Trivy in 2023.

Instructions

Follow docs (https://trivy.dev/docs/latest/scanner/misconfiguration/) to set up Trivy scanning of infra code.

Success criteria

  • Can run trivy infra linting via make target locally
  • Infra CI runs trivy
  • Docs are updated
  • [nice-to-have] Trivy scan results are pushed to GitHub repo security tab

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    cloud: awsApplies to AWS templatecloud: azureApplies to Azure templatedomain: securitySecurity or compliance issuescope: ci/cdGitHub actions workflows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions