Repository navigation
Harden conformance collection and regenerate the input corpus - #1
Merged
Merged
Conversation
Add cmd/openiac-conformance and internal/conformance/collect to crawl the Terraform Registry and configured GitHub seeds, resolve each module to an immutable commit, filter for Terraform sources, licenses and safety, and write self-contained fixtures. Commit 918 fixtures (6,934 files, 25,173,266 bytes) with per-fixture provenance, hashes, license texts, a deterministic corpus lock and generated third-party attribution. Document the inputs phase in docs/CONFORMANCE.md and conformance/README.md.
- Parse candidates with hclsyntax/hcljson and inspect nested expressions so feature detection and secret scanning see function, conditional, template and for-expression bodies. - Tighten credential heuristics: name boundaries, qualifier suffixes, placeholder and filler detection, and a length-plus-digit value threshold. - Resolve licenses from the nearest ancestor, accept bare SPDX texts and the LICENCE spelling, and reject permissive texts that add restrictions. - Write the lock and attribution atomically and fail a cancelled run instead of presenting a partial crawl as a finished corpus. - Add an offline verifier that recomputes the lock and checks provenance, licenses, tiers and hashes, and run it in CI. - Regenerate the corpus: 853 fixtures, 6,471 files, 24,314,566 bytes.
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
hclsyntax/hcljsonand inspect nested expressions, so feature detection and secret scanning see function, conditional, template andfor-expression bodies.LICENCEspelling, and reject permissive texts that add restrictions.Corpus
Test plan
gofmt -l .— cleango vet ./...— cleango test ./...— passgo test -race ./internal/conformance/collect/— passmake conformance-verify—verified 853 fixtures, 6471 files, 24314566 bytes