Skip to content

Commit a2bbee3

Browse files
committed
fix: GHA 4 eyes syntax
1 parent 31825ed commit a2bbee3

1 file changed

Lines changed: 18 additions & 16 deletions

File tree

.github/workflows/init_kosli.yml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -94,27 +94,29 @@ jobs:
9494
if: ${{ inputs.report_to_kosli == 'all' }}
9595
env:
9696
KOSLI_API_TOKEN: ${{ secrets.kosli_api_token }}
97-
run: kosli evaluate trails ${{inputs.trail_name}} \
98-
--policy "./bin/never_alone/four-eyes-policy.rego" \
99-
--show-input \
100-
--flow ${{inputs.flow_name}} \
101-
--org ${{inputs.kosli_org}} \
102-
--no-assert \
103-
--params '{"attestation_name": "pr"}' \
104-
--output json > "4eyes-eval-${{inputs.trail_name}}.json" || echo '{"allow":false,"violations":["evaluate command failed"]}' > "4eyes-eval-${{inputs.trail_name}}.json"
97+
run: |
98+
kosli evaluate trails ${{inputs.trail_name}} \
99+
--policy "./bin/never_alone/four-eyes-policy.rego" \
100+
--show-input \
101+
--flow ${{inputs.flow_name}} \
102+
--org ${{inputs.kosli_org}} \
103+
--no-assert \
104+
--params '{"attestation_name": "pr"}' \
105+
--output json > "4eyes-eval-${{inputs.trail_name}}.json" || echo '{"allow":false,"violations":["evaluate command failed"]}' > "4eyes-eval-${{inputs.trail_name}}.json"
105106
106107
- name: Report four-eyes attestation to Kosli
107108
if: ${{ inputs.report_to_kosli == 'all' }}
108109
env:
109110
KOSLI_API_TOKEN: ${{ secrets.kosli_api_token }}
110-
run: kosli attest custom \
111-
--type "four-eyes-result" \
112-
--name "four-eyes-result" \
113-
--attestation-data "4eyes-eval-${{inputs.trail_name}}.json" \
114-
--attachments "./bin/never_alone/four-eyes-policy.rego" \
115-
--trail ${{inputs.trail_name}} \
116-
--flow ${{inputs.flow_name}} \
117-
--org ${{inputs.kosli_org}}
111+
run: |
112+
kosli attest custom \
113+
--type "four-eyes-result" \
114+
--name "four-eyes-result" \
115+
--attestation-data "4eyes-eval-${{inputs.trail_name}}.json" \
116+
--attachments "./bin/never_alone/four-eyes-policy.rego" \
117+
--trail ${{inputs.trail_name}} \
118+
--flow ${{inputs.flow_name}} \
119+
--org ${{inputs.kosli_org}}
118120
119121
- name: Report never-alone attestation to Kosli
120122
if: ${{ inputs.report_to_kosli == 'all' }}

0 commit comments

Comments
 (0)