feat(actions): add trivy-tofu-scan reusable workflow#64
Merged
Conversation
Spec for replacing tfsec.yml with a Trivy-based reusable workflow for OpenTofu IaC scanning with SARIF, artifact, summary and PR comment output. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… scanning Replaces tfsec with Trivy to scan OpenTofu/Terraform misconfigurations. Persists results via SARIF upload to GitHub Security tab and JSON artifact. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…canning Validates GitHub Actions YAML syntax with actionlint and scans for hardcoded credentials with Trivy on every pull request. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ionlint@v0.1.9 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Quote $GITHUB_OUTPUT in trivy-tofu-scan, tfsec, ecr-security-scan, docker-build-push-ecr (SC2086) - Move github.head_ref to env var in pre-release.yml (security hardening) - Fix useless cat in changelog-release.yml (SC2002) - Quote GITHUB_REF expansion in changelog-release.yml (SC2086) - Change single to double quotes for GitHub expressions in ecr-security-scan (SC2016) - Add shellcheck disable=SC2016 for intentional JMESPath single-quote usage - Add shellcheck disable=SC2086 for intentional word-splitting in readme-ai-v2 - Fix find | xargs to find -print0 | xargs -0 in shellcheck.yml (SC2038) - Add actionlint:ignore:permissions for models permission in readme-ai-v2 and update-readme-actions (GitHub Models not yet in actionlint schema) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace devops-actions/actionlint wrapper with direct CLI install to pass -ignore for 'models' permission false positive (GitHub Models permission not yet in actionlint v1.7.7 schema). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…push-ecr metadata-file input was removed in docker/build-push-action@v7. Extract digest from steps.build.outputs.metadata instead. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
null-paorodrigues
approved these changes
May 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.github/workflows/trivy-tofu-scan.ymlas a reusable workflow (workflow_call) that replacestfsec.ymlaquasecurity/trivy-action@v0.36.0withscan-type: configto scan OpenTofu/Terraform misconfigurations atCRITICAL,HIGHseverityactions/upload-artifact@v7Test plan
.tffiles — workflow should scan and upload SARIF + artifact.tffiles — workflow should skip all scan steps and exit green🤖 Generated with Claude Code