Skip to content

Commit

Permalink
adds: docker policy id prefix in regex string
Browse files Browse the repository at this point in the history
  • Loading branch information
Rchanger committed Jul 29, 2021
1 parent de19a4c commit 840cff4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/runtime/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func TestInit(t *testing.T) {
policyPath: []string{testPoliciesDir},
},
wantErr: nil,
wantIacProvider: []iacProvider.IacProvider{&armv1.ARMV1{}, &cftv1.CFTV1{}, &dockerv1.DockerV1{}, &helmv3.HelmV3{}, &k8sv1.K8sV1{}, &kustomizev3.KustomizeV3{}, &tfv14.TfV14{}, &tfv15.TfV15{}},
wantIacProvider: []iacProvider.IacProvider{&armv1.ARMV1{}, &cftv1.CFTV1{}, &dockerv1.DockerV1{}, &helmv3.HelmV3{}, &k8sv1.K8sV1{}, &kustomizev3.KustomizeV3{}, &tfv15.TfV15{}},
wantNotifiers: []notifications.Notifier{},
},
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/skip_rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const (
// SkipRulesPrefix used to identify and trim the skipping rule patterns
SkipRulesPrefix = "#ts:skip="
// MetaDataIDRegex pattern to match Rego Metadata ID
MetaDataIDRegex = `(AC_)(AWS|AZURE|GCP|K8S|GITHUB)[_]([\d]{4})`
MetaDataIDRegex = `(AC_)(AWS|AZURE|GCP|K8S|GITHUB|DOCKER)[_]([\d]{4})`
// MetaDataReferenceIDRegex pattern to match Rego Metadata ReferenceID
MetaDataReferenceIDRegex = `(([ A-Za-z0-9]+[.-]{1}){2,5})([\d]+)`
// SkipRuleCommentRegex used to detect comments in skipped rule
Expand Down

0 comments on commit 840cff4

Please sign in to comment.