Skip to content

Commit 83dc522

Browse files
authored
ee plan policy in mgmt repo (#1835)
* add plan policy fetcher * plan.rego
1 parent 88af503 commit 83dc522

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ee/cli/pkg/policy/policy.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ func (p DiggerRepoPolicyProvider) GetAccessPolicy(organisation string, repo stri
108108
}
109109

110110
func (p DiggerRepoPolicyProvider) GetPlanPolicy(organisation string, repository string, projectname string, projectDir string) (string, error) {
111-
return "", nil
111+
policy, err := p.getPolicyFileContents(repository, projectname, projectDir, "plan.rego")
112+
if err != nil {
113+
return policy, err
114+
}
115+
return policy, nil
112116
}
113117

114118
func (p DiggerRepoPolicyProvider) GetDriftPolicy() (string, error) {

0 commit comments

Comments
 (0)