Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: store examples in YAML #271

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

nikpivkin
Copy link
Contributor

@nikpivkin nikpivkin commented Oct 14, 2024

In this PR:

  • Terraform and CloudFormation examples moved from cf.go and tf.go to yaml,
  • all checks now refer to the yaml examples
  • added command for formatting examples

Although all the examples for a single check are in a single file, we need to reference it from multiple check fields. I suggest adding a new examples field that will point to a single file, while maintaining support for the current method of referencing examples for backwards compatibility.

Old example files will be deleted in another PR as they are still referenced by Go checks.

Signed-off-by: Nikita Pivkin <[email protected]>
Signed-off-by: Nikita Pivkin <[email protected]>
Signed-off-by: Nikita Pivkin <[email protected]>
Signed-off-by: Nikita Pivkin <[email protected]>
Signed-off-by: Nikita Pivkin <[email protected]>
Signed-off-by: Nikita Pivkin <[email protected]>
@nikpivkin
Copy link
Contributor Author

Will be ready for review after the release of Trivy v0.57

@nikpivkin nikpivkin changed the title chore: use examples as YAML chore: store examples in YAML Oct 16, 2024
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.

1 participant