Repository navigation
Improve Terraform checks in reusable workflow - #30
Merged
Merged
Conversation
A repository holds several modules, projects and examples, and the single init and validate at the working directory passed on an empty folder without checking any of them. Each tracked configuration is now formatted, validated and linted on its own, a root configuration against its committed lock file, every check reporting even after one fails. The provider cache is filled through TF_PLUGIN_CACHE_DIR, and Checkov and Trivy leave out the checkout of the workflow parts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A provider is a Go binary run with the credentials of a deployment, and pinned versions age without anyone noticing. Every locked provider is compared with its latest stable release, a major version behind being a warning, and Trivy scans the provider binaries of the run, its findings reported as warnings and in the job summary. The Trivy action scans a directory for vulnerabilities with the rootfs scan type, and the provider cache is no longer kept between runs, so the scan sees only the providers in use. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014NEKk93uuob4o7tgGpJPxh
mawk creates an array element as soon as an assignment names it, before the test of the same element on its right. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014NEKk93uuob4o7tgGpJPxh
…rn about outdated TFLint plugins One .tflint.hcl at the root then serves every configuration, and a plugin pinned to an exact version, as TFLint requires, falls behind without anything saying so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014NEKk93uuob4o7tgGpJPxh
An installed package with known vulnerabilities shows the scan reads a directory the way the provider scan of the Terraform workflow needs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014NEKk93uuob4o7tgGpJPxh
Terraform 1.17.2, TFLint v0.66.0, Trivy 0.76.2, Syft 1.57.1, GoReleaser 2.20.2, mongosh 2.14.2, MongoDB server 9.0.8, Sonar scanner CLI 8.4.0.16527, ReportGenerator 5.6.0 and dotnet-sonarscanner 12.1.0. scripts/check_updates.sh reads the pinned versions from the repository and compares them with the latest stable upstream releases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…check locked providers for updates The fixture locks the latest hashicorp/local, whose vulnerabilities come from the Go version and modules it is built with, so only a new provider release clears the warning. scripts/check_updates.sh now reports a provider of a lock file that is behind its latest release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014NEKk6cC3kiJBK3MbLZdF6
… replace debian-node and debian-node-playwright with the Ubuntu 26.04 userland and default Node.js 24 of ubuntu-latest, as the GNU coreutils of Debian let pass a script the uutils coreutils of the runner fail Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ndows runners, and build images without pushing them, so a CI checks the packaging that only the publication on main pushes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ds no package in a Windows image where Grype reads every .NET assembly and Windows binary Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014NEKk8yDtgKD8Jc6uDbEN5
…here saving the image takes minutes for the gigabytes of its base layers Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014NEKk8yDtgKD8Jc6uDbEN5
…x binary left the SBOM step of a Windows job without a syft command Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… runner image may lack jq Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014NEKk9DcKwty4dSHG41oPz
… failure of cygpath is not masked Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014NEKk9DcKwty4dSHG41oPz
…nd markdownlint-cli2 to 0.24.1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… updates, as they were left out of the update check Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
|
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.



No description provided.