runatlantis / atlantis

Terraform Pull Request Automation
https://www.runatlantis.io
Other
7.69k stars 1.05k forks source link

"policy_check" is not a valid step type #2917

Open raz-bn opened 1 year ago

raz-bn commented 1 year ago

I am trying to use Atlantis with server-side configuration to enable policy check. I deployed Atlantis on a k8s cluster, and it seems to work just fine, but when trying to use server configuration I get the following error:

Error: initializing server: parsing /etc/atlantis/repos.yaml file: workflows: (default: (policy_check: (steps: (1: "policy_check" is not a valid step type.).).).).

my config.yaml

  repos:
  - id: /.*/
    apply_requirements: []
    workflow: default
    allowed_overrides: []
    allow_custom_workflows: false
  policies:
    owners:
      users:
        - raz-bn
    policy_sets:
      - name: s3
        path: /atlantis-data/conftest_policies  
        source: local
  workflows:
    default:
      plan:
        steps:
        - init
        - plan:
            extra_args: ["-lock", "false"]
      policy_check:
        steps:
        - show
        - policy_check:
             extra_args:["--update", "git::https://github.com/raz-bn/opa-policies.git"]
      apply:
        steps:
        - apply 
nitrocode commented 1 year ago

@raz-bn please