Skip to content

Commit

Permalink
docs: fix policy example with custom workflow (#2049)
Browse files Browse the repository at this point in the history
* Specify the workflow for the repo under the `repos` key.
* Fix indentation
* Fix typo `seperate` -> `separate`
  • Loading branch information
aliscott authored Feb 4, 2022
1 parent 7a927c0 commit 8f3fcc0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions runatlantis.io/docs/policy-checking.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,14 @@ Example Server Side Repo configuration using `--all-namespaces` and a local src
```
repos:
- id: github.com/myorg/example-repo
workflow: custom
policies:
owners:
users:
- example-dev
policy_sets:
- name: example-conf-tests
path: /home/atlantis/conftest_policies # Consider seperate vcs & mount into container
path: /home/atlantis/conftest_policies # Consider separate vcs & mount into container
source: local
workflows:
custom:
Expand All @@ -75,9 +76,9 @@ workflows:
- init
- plan
policy_check:
steps:
- policy_check:
extra_args: ["-p /home/atlantis/conftest_policies/", "--all-namespaces"]
steps:
- policy_check:
extra_args: ["-p /home/atlantis/conftest_policies/", "--all-namespaces"]
```

### Step 3: Write the policy
Expand Down

0 comments on commit 8f3fcc0

Please sign in to comment.