You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: runatlantis.io/docs/policy-checking.md
+1
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,7 @@ policies:
71
71
- `source`- Tells atlantis where to fetch the policies from. Currently you can only host policies locally by using `local`.
72
72
- `owners`- Defines the users/teams which are able to approve a specific policy set.
73
73
- `approve_count`- Defines the number of approvals needed to bypass policy checks. Defaults to the top-level policies configuration, if not specified.
74
+
- `prevent_self_approve`- Defines whether the PR author can approve policies
74
75
75
76
By default conftest is configured to only run the `main` package. If you wish to run specific/multiple policies consider passing `--namespace` or `--all-namespaces` to conftest with [`extra_args`](custom-workflows.md#adding-extra-arguments-to-terraform-commands) via a custom workflow as shown in the below example.
| name | string | none | yes | unique name for the policy set |
613
+
| path | string | none | yes | path to the rego policies directory |
614
+
| source | string | none | yes | only `local` is supported at this time |
615
+
| prevent_self_approve | bool | false | no | Whether or not the author of PR can approve policies. Defaults to `false` (the author must also be in owners) |
0 commit comments