Skip to content

Commit

Permalink
v1-prerelease hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
xfhg committed Sep 13, 2024
1 parent 712af20 commit cacb551
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion cmd/audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ var (
targetDir string
tagsAny string
tagsAll string
environment string
envDetection bool
debugOutput bool
rgPath string
Expand Down
1 change: 1 addition & 0 deletions cmd/observe.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ func loadFilteredPolicies() []Policy {
func ofilterPolicies(policies []Policy) []Policy {
if observeEnvironment == "" && observeEnvDetection {
observeEnvironment = DetectEnvironment()
environment = observeEnvironment
}

filtered := policies
Expand Down
2 changes: 2 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ var (
silentMode bool
nologMode bool

environment string

hostData string
hostFingerprint string

Expand Down

0 comments on commit cacb551

Please sign in to comment.