-
Notifications
You must be signed in to change notification settings - Fork 7
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: bump defsec and trivy-policies #33
Conversation
// func TestRulesAgainstExampleCode(t *testing.T) { | ||
// for _, rule := range rules.GetRegistered(framework.ALL) { | ||
// testName := fmt.Sprintf("%s/%s", rule.GetRule().AVDID, rule.LongID()) | ||
// t.Run(testName, func(t *testing.T) { | ||
// rule := rule | ||
// t.Parallel() | ||
|
||
// t.Run("avd docs", func(t *testing.T) { | ||
// provider := strings.ToLower(rule.GetRule().Provider.ConstName()) | ||
// service := strings.ToLower(strings.ReplaceAll(rule.GetRule().Service, "-", "")) | ||
// _, err := os.Stat(filepath.Join("..", "avd_docs", provider, service, rule.GetRule().AVDID, "docs.md")) | ||
// require.NoError(t, err) | ||
// }) | ||
// }) | ||
// } | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this commented out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@simar7 To perform this test, we need to generate documentation. Should I generate it as part of this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see - let's do it in a separate PR then otherwise it will clutter this PR.
* bump defsec and trivy-policies * test: use embedded FS * refactor: use embedded FS to generate documentation * chore: bump defsec and trivy-policies * refactor: use registered rules as is
* bump defsec and trivy-policies * test: use embedded FS * refactor: use embedded FS to generate documentation * chore: bump defsec and trivy-policies * refactor: use registered rules as is
* feat(schema): Add schema generation * mv pkg/rego and pkg/rules from trivy-policies * update go mod * mv internal/rules/ pkg * update schema ids * remove trivy-policies/pkg/rego imports * fix schema json * fix cyclic dependency * fix Test_OS_FS * chore: bump defsec and trivy-policies (#33) * bump defsec and trivy-policies * test: use embedded FS * refactor: use embedded FS to generate documentation * chore: bump defsec and trivy-policies * refactor: use registered rules as is --------- Co-authored-by: Nikita Pivkin <nikita.pivkin@smartforce.io>
Related PRs