Slackbot
01/29/2024, 1:16 AMKumaresan Periyasamy
01/29/2024, 1:26 AMrepos:
- id: /.*/
branch: /^main$/
apply_requirements: [mergeable, undiverged, approved]
policy_check: true
custom_policy_check: true
workflow: custom
workflows:
custom:
policy_check:
steps:
- show
- run: cnspec scan terraform plan $SHOWFILE --policy-bundle example-cnspec-policies.mql.yaml
policies:
owners:
users:
- example_ghuser
policy_sets:
- name: example-set
path: example-cnspec-policies.mql.yaml
source: local
if I use a custom policy check as above is it possible to set custom approver as below ?
workflows:
custom:
policy_check:
owner: <approver 1>
steps:
- show
- run: cnspec scan terraform plan $SHOWFILE --policy-bundle