Skip to content

Commit 7224001

Browse files
committed
chore(rego): rename the file
1 parent 176b132 commit 7224001

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ How to use Role-based access control (RBAC) with the Open Policy Agent. See the
1212

1313
### Create RBAC policy
1414

15-
[embedmd]:# (example.rego)
15+
[embedmd]:# (policy/rbac.authz.rego)
1616
```rego
1717
package rbac.authz
1818
@@ -101,7 +101,7 @@ allow {
101101

102102
Please download [OPA Binary](https://www.openpolicyagent.org/docs/latest/#running-opa) first.
103103

104-
[embedmd]:# (example_test.rego)
104+
[embedmd]:# (policy/rbac.authz_test.rego)
105105
```rego
106106
package rbac.authz
107107

policy/policy_embed.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
_ "embed"
77
)
88

9-
//go:embed example.rego
9+
//go:embed rbac.authz.rego
1010
var policy []byte
1111

1212
func ReadPolicy(path string) ([]byte, error) {
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)