Skip to content

Commit

Permalink
Merge pull request #5 from aquasecurity/fix-module-references
Browse files Browse the repository at this point in the history
chore(pkg): Fix module references
  • Loading branch information
simar7 authored Sep 19, 2023
2 parents 8879c3b + e617487 commit 9dc0eb5
Show file tree
Hide file tree
Showing 344 changed files with 450 additions and 448 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
tags:
- "v*"
env:
GH_USER: simar7
GH_USER: aqua-bot
jobs:
build:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions cmd/avd_generator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (

"github.com/aquasecurity/defsec/pkg/framework"

_ "github.com/simar7/trivy-policies/pkg/rego"
registered "github.com/simar7/trivy-policies/pkg/rules"
"github.com/simar7/trivy-policies/pkg/types"
_ "github.com/aquasecurity/trivy-policies/pkg/rego"
registered "github.com/aquasecurity/trivy-policies/pkg/rules"
"github.com/aquasecurity/trivy-policies/pkg/types"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/avd_generator/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/stretchr/testify/require"

"github.com/aquasecurity/defsec/pkg/framework"
registered "github.com/simar7/trivy-policies/pkg/rules"
registered "github.com/aquasecurity/trivy-policies/pkg/rules"
)

func init() { // change the pwd for the test to top level defesc dir
Expand Down
4 changes: 2 additions & 2 deletions cmd/id/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

"github.com/aquasecurity/defsec/pkg/framework"

_ "github.com/simar7/trivy-policies/pkg/rego"
"github.com/simar7/trivy-policies/pkg/rules"
_ "github.com/aquasecurity/trivy-policies/pkg/rego"
"github.com/aquasecurity/trivy-policies/pkg/rules"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/schema/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/spf13/cobra"

"github.com/simar7/trivy-policies/pkg/rego/schemas"
"github.com/aquasecurity/trivy-policies/pkg/rego/schemas"
)

// generate a json schema document for cloud rego input (state.State)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/aquasecurity/trivy-policies
go 1.20

require (
github.com/aquasecurity/defsec v0.92.0
github.com/aquasecurity/defsec v0.92.1-0.20230918174123-78adefe70b50
github.com/docker/docker v24.0.5+incompatible
github.com/liamg/iamgo v0.0.9
github.com/liamg/memoryfs v1.4.3
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ github.com/alecthomas/chroma v0.10.0/go.mod h1:jtJATyUxlIORhUOFNA9NZDWGAQ8wpxQQq
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8=
github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw=
github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo=
github.com/aquasecurity/defsec v0.92.0 h1:cls2JJSQ+vb06Qh2XjnODIRfZbrTGBkBQnjgC6R5+vA=
github.com/aquasecurity/defsec v0.92.0/go.mod h1:uZIC1NjU5R49619WvZOlhWRpCEf/7KD3Lm8nDKRjq+o=
github.com/aquasecurity/defsec v0.92.1-0.20230918174123-78adefe70b50 h1:W9HkJuhsThNaQg3DX8VVlFA9lnA6SjKUU0CLmFO5Dos=
github.com/aquasecurity/defsec v0.92.1-0.20230918174123-78adefe70b50/go.mod h1:BiRuveI3ATEzIwyg6SUeU7MHuPFczAmYmFmdYQLdSSU=
github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0 h1:jfIu9sQUG6Ig+0+Ap1h4unLjW6YQJpKZVmUzxsD4E/Q=
github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0/go.mod h1:t2tdKJDJF9BV14lnkjHmOQgcvEKgtqs5a1N3LNdJhGE=
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
Expand Down
7 changes: 4 additions & 3 deletions internal/rules/register.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
package rules

import (
"gopkg.in/yaml.v3"
"sync"

"gopkg.in/yaml.v3"

"github.com/aquasecurity/defsec/pkg/framework"
"github.com/aquasecurity/defsec/pkg/scan"
dftypes "github.com/aquasecurity/defsec/pkg/types"

"github.com/simar7/trivy-policies/pkg/types"
"github.com/simar7/trivy-policies/rules/specs"
"github.com/aquasecurity/trivy-policies/pkg/types"
"github.com/aquasecurity/trivy-policies/rules/specs"
)

type registry struct {
Expand Down
4 changes: 2 additions & 2 deletions pkg/rego/embed.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"path/filepath"
"strings"

"github.com/aquasecurity/trivy-policies/internal/rules"
rules2 "github.com/aquasecurity/trivy-policies/rules"
"github.com/open-policy-agent/opa/ast"
"github.com/simar7/trivy-policies/internal/rules"
rules2 "github.com/simar7/trivy-policies/rules"
)

func init() {
Expand Down
4 changes: 2 additions & 2 deletions pkg/rego/embed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package rego
import (
"testing"

"github.com/aquasecurity/trivy-policies/internal/rules"
rules2 "github.com/aquasecurity/trivy-policies/rules"
"github.com/open-policy-agent/opa/ast"
"github.com/simar7/trivy-policies/internal/rules"
rules2 "github.com/simar7/trivy-policies/rules"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
3 changes: 2 additions & 1 deletion pkg/rego/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ package rego
import (
"context"
"fmt"
"github.com/simar7/trivy-policies/internal/rego"
"io"
"io/fs"
"path/filepath"
"strings"

"github.com/aquasecurity/trivy-policies/internal/rego"

"github.com/open-policy-agent/opa/ast"
"github.com/open-policy-agent/opa/bundle"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/rego/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
"github.com/aquasecurity/defsec/pkg/scan"
"github.com/aquasecurity/defsec/pkg/scanners/options"
"github.com/aquasecurity/defsec/pkg/types"
"github.com/aquasecurity/trivy-policies/pkg/rego/schemas"
"github.com/open-policy-agent/opa/ast"
"github.com/open-policy-agent/opa/rego"
"github.com/open-policy-agent/opa/storage"
"github.com/simar7/trivy-policies/pkg/rego/schemas"
)

var _ options.ConfigurableScanner = (*Scanner)(nil)
Expand Down
2 changes: 1 addition & 1 deletion pkg/rego/schemas/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"

"github.com/aquasecurity/defsec/pkg/state"
"github.com/simar7/trivy-policies/pkg/rego/convert"
"github.com/aquasecurity/trivy-policies/pkg/rego/convert"
)

type RawSchema struct {
Expand Down
4 changes: 2 additions & 2 deletions pkg/rules/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package rules
import (
"github.com/aquasecurity/defsec/pkg/framework"
"github.com/aquasecurity/defsec/pkg/scan"
"github.com/simar7/trivy-policies/internal/rules"
"github.com/simar7/trivy-policies/pkg/types"
"github.com/aquasecurity/trivy-policies/internal/rules"
"github.com/aquasecurity/trivy-policies/pkg/types"
)

func Register(rule scan.Rule, f scan.CheckFunc) types.RegisteredRule {
Expand Down
142 changes: 71 additions & 71 deletions pkg/rules/rules.go
Original file line number Diff line number Diff line change
@@ -1,75 +1,75 @@
package rules

import (
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/accessanalyzer"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/apigateway"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/athena"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/cloudfront"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/cloudtrail"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/cloudwatch"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/codebuild"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/config"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/documentdb"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/dynamodb"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/ec2"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/ecr"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/ecs"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/efs"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/eks"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/elasticache"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/elasticsearch"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/elb"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/emr"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/iam"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/kinesis"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/kms"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/lambda"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/mq"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/msk"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/neptune"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/rds"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/redshift"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/s3"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/sam"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/sns"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/sqs"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/ssm"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/workspaces"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/appservice"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/authorization"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/compute"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/container"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/database"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/datafactory"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/datalake"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/keyvault"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/monitor"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/network"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/securitycenter"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/storage"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/synapse"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/cloudstack/compute"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/digitalocean/compute"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/digitalocean/spaces"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/github/actions"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/github/branch_protections"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/github/repositories"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/google/bigquery"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/google/compute"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/google/dns"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/google/gke"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/google/iam"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/google/kms"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/google/sql"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/google/storage"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/nifcloud/computing"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/nifcloud/dns"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/nifcloud/nas"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/nifcloud/network"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/nifcloud/rdb"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/nifcloud/sslcertificate"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/openstack/compute"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/openstack/networking"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/oracle/compute"
_ "github.com/simar7/trivy-policies/rules/kubernetes/network"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/accessanalyzer"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/apigateway"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/athena"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/cloudfront"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/cloudtrail"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/cloudwatch"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/codebuild"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/config"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/documentdb"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/dynamodb"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/ec2"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/ecr"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/ecs"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/efs"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/eks"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/elasticache"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/elasticsearch"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/elb"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/emr"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/iam"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/kinesis"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/kms"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/lambda"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/mq"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/msk"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/neptune"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/rds"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/redshift"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/s3"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/sam"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/sns"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/sqs"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/ssm"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/aws/workspaces"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/azure/appservice"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/azure/authorization"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/azure/compute"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/azure/container"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/azure/database"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/azure/datafactory"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/azure/datalake"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/azure/keyvault"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/azure/monitor"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/azure/network"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/azure/securitycenter"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/azure/storage"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/azure/synapse"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/cloudstack/compute"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/digitalocean/compute"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/digitalocean/spaces"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/github/actions"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/github/branch_protections"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/github/repositories"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/google/bigquery"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/google/compute"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/google/dns"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/google/gke"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/google/iam"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/google/kms"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/google/sql"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/google/storage"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/nifcloud/computing"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/nifcloud/dns"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/nifcloud/nas"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/nifcloud/network"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/nifcloud/rdb"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/nifcloud/sslcertificate"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/openstack/compute"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/openstack/networking"
_ "github.com/aquasecurity/trivy-policies/rules/cloud/policies/oracle/compute"
_ "github.com/aquasecurity/trivy-policies/rules/kubernetes/network"
)
2 changes: 1 addition & 1 deletion pkg/spec/spec.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package spec

import (
"github.com/simar7/trivy-policies/rules/specs"
"github.com/aquasecurity/trivy-policies/rules/specs"
)

// Loader access compliance specs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/aquasecurity/defsec/pkg/severity"
"github.com/aquasecurity/defsec/pkg/state"
defsecTypes "github.com/aquasecurity/defsec/pkg/types"
"github.com/simar7/trivy-policies/internal/rules"
"github.com/aquasecurity/trivy-policies/internal/rules"
)

var CheckEnableAccessAnalyzer = rules.Register(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/aquasecurity/defsec/pkg/scan"
"github.com/aquasecurity/defsec/pkg/severity"
"github.com/aquasecurity/defsec/pkg/state"
"github.com/simar7/trivy-policies/internal/rules"
"github.com/aquasecurity/trivy-policies/internal/rules"
)

var CheckEnableAccessLogging = rules.Register(
Expand Down
2 changes: 1 addition & 1 deletion rules/cloud/policies/aws/apigateway/enable_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/aquasecurity/defsec/pkg/scan"
"github.com/aquasecurity/defsec/pkg/severity"
"github.com/aquasecurity/defsec/pkg/state"
"github.com/simar7/trivy-policies/internal/rules"
"github.com/aquasecurity/trivy-policies/internal/rules"
)

var CheckEnableCache = rules.Register(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/aquasecurity/defsec/pkg/scan"
"github.com/aquasecurity/defsec/pkg/severity"
"github.com/aquasecurity/defsec/pkg/state"
"github.com/simar7/trivy-policies/internal/rules"
"github.com/aquasecurity/trivy-policies/internal/rules"
)

var CheckEnableCacheEncryption = rules.Register(
Expand Down
2 changes: 1 addition & 1 deletion rules/cloud/policies/aws/apigateway/enable_tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/aquasecurity/defsec/pkg/scan"
"github.com/aquasecurity/defsec/pkg/severity"
"github.com/aquasecurity/defsec/pkg/state"
"github.com/simar7/trivy-policies/internal/rules"
"github.com/aquasecurity/trivy-policies/internal/rules"
)

var CheckEnableTracing = rules.Register(
Expand Down
2 changes: 1 addition & 1 deletion rules/cloud/policies/aws/apigateway/no_public_access.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/aquasecurity/defsec/pkg/scan"
"github.com/aquasecurity/defsec/pkg/severity"
"github.com/aquasecurity/defsec/pkg/state"
"github.com/simar7/trivy-policies/internal/rules"
"github.com/aquasecurity/trivy-policies/internal/rules"
)

var CheckNoPublicAccess = rules.Register(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/aquasecurity/defsec/pkg/scan"
"github.com/aquasecurity/defsec/pkg/severity"
"github.com/aquasecurity/defsec/pkg/state"
"github.com/simar7/trivy-policies/internal/rules"
"github.com/aquasecurity/trivy-policies/internal/rules"
)

var CheckUseSecureTlsPolicy = rules.Register(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/aquasecurity/defsec/pkg/scan"
"github.com/aquasecurity/defsec/pkg/severity"
"github.com/aquasecurity/defsec/pkg/state"
"github.com/simar7/trivy-policies/internal/rules"
"github.com/aquasecurity/trivy-policies/internal/rules"
)

var CheckEnableAtRestEncryption = rules.Register(
Expand Down
2 changes: 1 addition & 1 deletion rules/cloud/policies/aws/athena/no_encryption_override.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/aquasecurity/defsec/pkg/scan"
"github.com/aquasecurity/defsec/pkg/severity"
"github.com/aquasecurity/defsec/pkg/state"
"github.com/simar7/trivy-policies/internal/rules"
"github.com/aquasecurity/trivy-policies/internal/rules"
)

var CheckNoEncryptionOverride = rules.Register(
Expand Down
Loading

0 comments on commit 9dc0eb5

Please sign in to comment.