Skip to content

Commit 03355fb

Browse files
committed
chore: use better error handling for evaluationo and amend rego comment
1 parent 0d3224f commit 03355fb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/init_kosli.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
--flow ${{inputs.flow_name}} \
101101
--org ${{inputs.kosli_org}} \
102102
--no-assert \
103-
--output json > "4eyes-eval-${{inputs.trail_name}}.json"
103+
--output json > "4eyes-eval-${{inputs.trail_name}}.json" || echo '{"allow":false,"violations":["evaluate command failed"]}' > "4eyes-eval-${{inputs.trail_name}}.json"
104104

105105
- name: Report four-eyes attestation to Kosli
106106
if: ${{ inputs.report_to_kosli == 'all' }}

bin/never_alone/four-eyes-policy.rego

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ attestation_name := name if {
2020
#
2121
# Used with `kosli evaluate trails` (plural). Each trail in input.trails
2222
# represents one commit. The PR attestation payload is at:
23-
# trail.compliance_status.attestations_statuses["pr-review"]
23+
# trail.compliance_status.attestations_statuses[attestation_name]
2424
#
25-
# Attested via: kosli attest pullrequest github --name pr-review --commit <sha>
25+
# Attested via: kosli attest pullrequest github --name <attestation_name> --commit <sha>
2626
# ---------------------------------------------------------------------------
2727

2828
# Extract PR attestation payload from a trail.

0 commit comments

Comments
 (0)