TerraformPilot

Infrastructure as Code

Trivy v0.77.0 Released: Upgrade Notes for Terraform Misconfiguration Scanning

Trivy v0.77.0 is out. Release notes are thin on details; here's how to safely upgrade and verify Terraform scanning still works.

LLuca Berton2 min read

Introduction

#

Trivy v0.77.0 has been released, following v0.76.0. Trivy is widely used in Terraform pipelines to catch misconfigurations (insecure security groups, public S3 buckets, missing encryption, etc.) before terraform apply runs. This article covers what to do when a new Trivy version lands, since the upstream release notes for v0.77.0 are unusually thin.

What Is New

#

The published release notes for v0.77.0 contain only a link to a highlights discussion and a link to the full CHANGELOG. No specific feature names, flags, or issue/PR numbers are listed in the notes provided, so this article does not invent any. If your workflow depends on a specific behavior change, check those two links directly before upgrading:

What is known for certain is that v0.77.0 continues Trivy's config scanner, which evaluates Terraform HCL (and plan JSON) against built-in Rego policies for misconfigurations such as:

resource "aws_s3_bucket" "data" {
  bucket = "example-data-bucket"
  # Trivy's config scanner will flag missing encryption/public-access settings
}

Since no breaking changes or deprecations are documented in the notes supplied for this release, treat this as a routine patch/minor upgrade until the changelog is reviewed.

Upgrade Steps

#

If Trivy is installed as a standalone binary:

# macOS / Linux via install script
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin v0.77.0
 
# Homebrew
brew upgrade trivy
 
# Docker
docker pull aquasec/trivy:0.77.0

If Trivy runs in CI (GitHub Actions) pin the version explicitly rather than floating on latest:

- name: Run Trivy config scan
  uses: aquasecurity/trivy-action@master
  with:
    scan-type: 'config'
    scan-ref: '.'
    trivy-version: 'v0.77.0'

For Terraform-specific scanning, no changes are required to Terraform code itself — Trivy scans .tf files and plan output externally. If you generate a plan for scanning (recommended for catching computed values), the invocation remains:

terraform plan -out=tfplan.binary
terraform show -json tfplan.binary > tfplan.json
trivy config --format json --output results.json tfplan.json

There is no Terraform provider version constraint to bump here since Trivy is an external tool, not a Terraform provider or module. Keep your CI pipeline's pinned Trivy version in sync, e.g. in a Dockerfile or renovate.json:

# Dockerfile snippet
ENV TRIVY_VERSION=0.77.0
RUN wget https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION}/trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz

Verify

#

Confirm the binary version and that config scanning still runs cleanly against existing Terraform:

trivy --version
# Version: 0.77.0
 
trivy config --exit-code 1 --severity HIGH,CRITICAL .

Compare the exit code and finding count against the previous v0.76.0 run on the same codebase to catch any unexpected rule or scoring changes introduced by the upgrade.

Conclusion

#

Trivy v0.77.0 is available and should be adopted as a routine upgrade in Terraform scanning pipelines. Because the release notes provided here lack itemized changes, teams relying on specific Rego policies or CLI flags should check the linked highlights discussion and full changelog before rolling this out broadly in production CI.

#Trivy#Terraform#IaC Security#DevOps#CLI Tools

Share this article