trivy-plugin-aqua v0.239.0
Trivy plugin for integration with Aqua Security SaaS platformUsageTrivy's options need to be pass 2026-8-23 04:43:39 Author: kitploit.com(查看原文) 阅读量:7 收藏

Trivy plugin for integration with Aqua Security SaaS platform

Usage

Trivy's options need to be passed after --. Trivy receives a target directory containing IaC files

Set Aqua plugin as Trivy's current default plugin by exporting an environment variable

  export TRIVY_RUN_AS_PLUGIN=aqua

Scan an IaC target

Scan an IaC target and tag the scan

Scan an IaC target and report only specific severities

  trivy --severities CRITICAL,HIGH <target>

Command Line Arguments

ArgumentPurposeExample Usage
--debugGet more detailed output as Trivy runs.
--severitiesThe Severities that you are interested in.--severities CRITICAL,HIGH,UNKNOWN
--tagsArbitrary tags to be stored with the scan.--tags 'BUILD_HOST=$HOSTNAME,foo=bar'
--pipelinesScan repository pipeline files.--pipelines / PIPELINES=1 trivy ...
--package-jsonScan package.json files without lock files--package-json / PACKAGE_JSON=1 trivy ...

Environment Variables

Required

The only explicitly required environment variables are

VariablePurpose
AQUA_KEYGenerated through CSPM UI
AQUA_SECRETGenerated through CSPM UI

Optional

VariablePurpose
CSPM_URLURL to generate Aqua Platform token (default: us-east-1 CSPM)
AQUA_URLAqua platform URL (default: us-east-1 Aqua platform)

Trivy will attempt to resolve the following details from the available environment variables;

  • repository name
  • branch name
  • commit id
  • committing user
  • build system

There are some special case env vars;

VariablePurpose
OVERRIDE_REPOSITORYUse this environment variable to explicitly specify the repository used by Trivy
FALLBACK_REPOSITORYUse this environment variable as a backup if no other repository env vars can be found
OVERRIDE_BRANCHUse this environment variable to explicitly specify the branch used by Trivy
FALLBACK_BRANCHUse this environment variable as a backup if no other branch env vars can be found
OVERRIDE_BUILDSYSTEMUse this environment variable to explicitly specify the build system
OVERRIDE_SCMIDUse this environment variable to explicitly specify the scm id
IGNORE_PANICUse this environment variable to return exit code 0 on cli panic
OVERRIDE_REPOSITORY_URLUse this environment variable to explicitly specify the repository link used by Trivy (For result's web link)
OVERRIDE_REPOSITORY_SOURCEUse this environment variable to explicitly specify the repository source used by Trivy

Certain scanners have additional behaviors

Pipelines

The pipelines scanner is enabled, to skip fetch and scan pipelines add --skip-pipelines flag. pipelines scanning uses Pipeline Parser to parse the pipelines, and therefore, supports only the platforms that are supported by the package.

The results of the scanner are:

  • parsed version of the pipeline files
  • pipeline misconfigurations

Read more


文章来源: https://kitploit.com/en/posts/github-aquasecurity-trivy-plugin-aqua-v02390
如有侵权请联系:admin#unsafe.sh