Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Update defsec #27

Merged
merged 2 commits into from
Nov 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ dockers:

announce:
twitter:
enabled: true
enabled: false
message_template: "🎉 cfsec {{.Tag}} is available now!! See what's new here - https://github.com/aquasecurity/cfsec/releases/tag/{{.Tag}}"
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ go 1.16

require (
github.com/apparentlymart/go-cidr v1.1.0
github.com/aquasecurity/defsec v0.0.33
github.com/aquasecurity/defsec v0.0.36
github.com/aquasecurity/tfsec v0.60.1 // indirect
github.com/liamg/jfather v0.0.2
github.com/liamg/tml v0.4.0
github.com/spf13/cobra v1.2.1
Expand Down
6 changes: 6 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ github.com/aquasecurity/defsec v0.0.32 h1:aXosboXQYHTORceEGRgbCDESvrjVYiUjm0YkVH
github.com/aquasecurity/defsec v0.0.32/go.mod h1:EjSsCi122fNbpi89jctQhsR0ykh9ZwBcbHXxZ9mqOzA=
github.com/aquasecurity/defsec v0.0.33 h1:kRs+1dtUi5wd5stz2hvYv1ltIuUDN602uo8pFod96qU=
github.com/aquasecurity/defsec v0.0.33/go.mod h1:EjSsCi122fNbpi89jctQhsR0ykh9ZwBcbHXxZ9mqOzA=
github.com/aquasecurity/defsec v0.0.34 h1:gDQZWzBO0acLuj1Y5BU9y4f0QIcyGrBNkcLlLXivPJI=
github.com/aquasecurity/defsec v0.0.34/go.mod h1:EjSsCi122fNbpi89jctQhsR0ykh9ZwBcbHXxZ9mqOzA=
github.com/aquasecurity/defsec v0.0.35 h1:VC97BiP2xDHZChZdgLyajoHlX4EfvE7yeiCDJg1nwnU=
github.com/aquasecurity/defsec v0.0.35/go.mod h1:EjSsCi122fNbpi89jctQhsR0ykh9ZwBcbHXxZ9mqOzA=
github.com/aquasecurity/defsec v0.0.36 h1:Dq0yRDd7ETN0zi2q+7yeGDSzSU32m2Vw5aMczxku2Ss=
github.com/aquasecurity/defsec v0.0.36/go.mod h1:csaBEcJ3AKy44expnW0dCANEZcS/c1vcJjwBCbnKWBM=
github.com/aquasecurity/tfsec v0.60.1/go.mod h1:MR3uDlWu+fBTisFndR+NwjSGt06RBhkE++JzKRJ0Ggs=
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=
Expand Down
8 changes: 2 additions & 6 deletions internal/app/cfsec/parser/property_helpers.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package parser

import (
"fmt"
"os"
"strconv"
"strings"

Expand Down Expand Up @@ -112,7 +110,7 @@ func (p *Property) AsString() string {
if prop, success := p.resolveValue(); success {
return prop.AsString()
}
_, _ = fmt.Fprintf(os.Stderr, "Could not resolve function at %s, returning type default\n", p.rng)
debug.Error("Could not resolve function at %s, returning type default\n", p.rng)
return ""
}
if p.IsNil() {
Expand Down Expand Up @@ -198,7 +196,6 @@ func (p *Property) EqualTo(checkValue interface{}, equalityOptions ...EqualityOp
}
}


switch checkerVal := checkValue.(type) {
case string:
if p.IsNil() {
Expand All @@ -223,8 +220,7 @@ func (p *Property) EqualTo(checkValue interface{}, equalityOptions ...EqualityOp
return p.Inner.Value == checkerVal
}


return false
return false

}

Expand Down
4 changes: 4 additions & 0 deletions vendor/github.com/aquasecurity/defsec/rules/flat.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ github.com/acomagu/bufpipe
# github.com/apparentlymart/go-cidr v1.1.0
## explicit
github.com/apparentlymart/go-cidr/cidr
# github.com/aquasecurity/defsec v0.0.33
# github.com/aquasecurity/defsec v0.0.36
## explicit
github.com/aquasecurity/defsec/cidr
github.com/aquasecurity/defsec/formatters
Expand Down Expand Up @@ -130,6 +130,8 @@ github.com/aquasecurity/defsec/rules/aws/workspaces
github.com/aquasecurity/defsec/severity
github.com/aquasecurity/defsec/state
github.com/aquasecurity/defsec/types
# github.com/aquasecurity/tfsec v0.60.1
## explicit
# github.com/davecgh/go-spew v1.1.1
github.com/davecgh/go-spew/spew
# github.com/emirpasic/gods v1.12.0
Expand Down