Skip to content

Commit

Permalink
ee plan policy in mgmt repo (#1835)
Browse files Browse the repository at this point in the history
* add plan policy fetcher

* plan.rego
  • Loading branch information
motatoes authored Nov 21, 2024
1 parent 88af503 commit 83dc522
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ee/cli/pkg/policy/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ func (p DiggerRepoPolicyProvider) GetAccessPolicy(organisation string, repo stri
}

func (p DiggerRepoPolicyProvider) GetPlanPolicy(organisation string, repository string, projectname string, projectDir string) (string, error) {
return "", nil
policy, err := p.getPolicyFileContents(repository, projectname, projectDir, "plan.rego")
if err != nil {
return policy, err
}
return policy, nil
}

func (p DiggerRepoPolicyProvider) GetDriftPolicy() (string, error) {
Expand Down

0 comments on commit 83dc522

Please sign in to comment.