From 50248ede042e51558a89ca7b7b424f7dc80edda6 Mon Sep 17 00:00:00 2001 From: Alistair Scott Date: Fri, 4 Feb 2022 20:50:35 +0000 Subject: [PATCH] docs: fix policy example with custom workflow (#2049) * Specify the workflow for the repo under the `repos` key. * Fix indentation * Fix typo `seperate` -> `separate` --- runatlantis.io/docs/policy-checking.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/runatlantis.io/docs/policy-checking.md b/runatlantis.io/docs/policy-checking.md index e0ee0bcd2f..c72f8d192d 100644 --- a/runatlantis.io/docs/policy-checking.md +++ b/runatlantis.io/docs/policy-checking.md @@ -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: @@ -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