Skip to content

add Trivy IaC security scanning workflow#285

Merged
EmmanuelNwa247 merged 5 commits intomainfrom
Nuel/DEV-328-add-trivy-iac-scanning
May 5, 2026
Merged

add Trivy IaC security scanning workflow#285
EmmanuelNwa247 merged 5 commits intomainfrom
Nuel/DEV-328-add-trivy-iac-scanning

Conversation

@EmmanuelNwa247
Copy link
Copy Markdown
Contributor

@EmmanuelNwa247 EmmanuelNwa247 commented May 1, 2026

Summary

Adds a Trivy IaC security scanning workflow to NEDSS-Infrastructure (DEV-328). This scans Terraform files for misconfigurations, embedded secrets, and dependency vulnerabilities on PRs and pushes to main, with results uploaded to the GitHub Security tab via SARIF.

Details

Scan scope: terraform/aws/modules/ and terraform/azure/modules/ — scoped to our reusable modules to keep findings actionable and avoid noise from external third-party module references
Scanners: vuln, secret, misconfig
Severity: CRITICAL, HIGH
Exit code set to 0 (report-only) for initial rollout — can be changed to 1 to enforce as a PR gate
Trivy action pinned to SHA per org convention (supply chain mitigation)

@github-advanced-security
Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@EmmanuelNwa247 EmmanuelNwa247 marked this pull request as ready for review May 1, 2026 20:25
Copy link
Copy Markdown
Contributor

@szamfir-skylight szamfir-skylight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

jolson490
jolson490 previously approved these changes May 4, 2026
@EmmanuelNwa247 EmmanuelNwa247 dismissed stale reviews from jolson490 and szamfir-skylight via 5918087 May 4, 2026 20:05
Comment thread .github/workflows/trivy.yaml Dismissed
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 5, 2026

@EmmanuelNwa247 EmmanuelNwa247 requested a review from jolson490 May 5, 2026 14:10
@EmmanuelNwa247 EmmanuelNwa247 merged commit 2d90bf3 into main May 5, 2026
5 checks passed
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

Successfully merging this pull request may close these issues.

5 participants