chore(tools): update fetchml-vet analyzers
Analyzer improvements: - hipaacomplete.go: refined HIPAA compliance checks - manifestenv.go: environment variable validation in manifests - nobaredetector.go: detection of bare credential exposures - noinlinecredentials.go: inline credential scanning improvements
This commit is contained in:
parent
2bd7f97ae2
commit
a49e8f593c
4 changed files with 4 additions and 4 deletions
|
|
@ -27,7 +27,7 @@ var hipaaRequiredFields = []string{
|
|||
"ComplianceMode",
|
||||
}
|
||||
|
||||
func runHIPAACompleteness(pass *analysis.Pass) (interface{}, error) {
|
||||
func runHIPAACompleteness(pass *analysis.Pass) (any, error) {
|
||||
for _, file := range pass.Files {
|
||||
ast.Inspect(file, func(n ast.Node) bool {
|
||||
// Look for if statements
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ var ManifestEnvironmentAnalyzer = &analysis.Analyzer{
|
|||
Run: runManifestEnvironment,
|
||||
}
|
||||
|
||||
func runManifestEnvironment(pass *analysis.Pass) (interface{}, error) {
|
||||
func runManifestEnvironment(pass *analysis.Pass) (any, error) {
|
||||
for _, file := range pass.Files {
|
||||
ast.Inspect(file, func(n ast.Node) bool {
|
||||
// Look for return statements
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ var NoBareDetectorAnalyzer = &analysis.Analyzer{
|
|||
Run: runNoBareDetector,
|
||||
}
|
||||
|
||||
func runNoBareDetector(pass *analysis.Pass) (interface{}, error) {
|
||||
func runNoBareDetector(pass *analysis.Pass) (any, error) {
|
||||
for _, file := range pass.Files {
|
||||
ast.Inspect(file, func(n ast.Node) bool {
|
||||
// Look for call expressions
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ var sensitiveCredentialFields = []string{
|
|||
"PrivateKey",
|
||||
}
|
||||
|
||||
func runNoInlineCredentials(pass *analysis.Pass) (interface{}, error) {
|
||||
func runNoInlineCredentials(pass *analysis.Pass) (any, error) {
|
||||
for _, file := range pass.Files {
|
||||
ast.Inspect(file, func(n ast.Node) bool {
|
||||
// Look for composite literals (struct initialization)
|
||||
|
|
|
|||
Loading…
Reference in a new issue