Skip to content

Commit

Permalink
docs: fix policy example with custom workflow (runatlantis#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 and krrrr38 committed Dec 16, 2022
1 parent dc3a026 commit 50248ed
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 50248ed

Please sign in to comment.