This repository was archived by the owner on Jun 16, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 container : ghcr.io/l3montree-dev/compliance-as-code-witness:latest
4545 env :
4646 PR_NUMBER : ${{ github.event.number }}
47- PR_TITLE : ${{ github.event.pull_request.title }}
47+ PR_TITLE : /tmp/pr_title
4848 ATTESTATION_FILE : /tmp/attest.json
4949 POLICY_REGO : /tmp/policy.rego
5050 MERGE_COMMIT_SHA : ${{ github.sha }}
8989 uses : open-policy-agent/setup-opa@v2
9090 with :
9191 version : 1.10.1
92-
9392 - name : id to title rego
9493 run : |
9594 echo '{"node_id": "${{ env.NODE_ID }}"}' > /tmp/id-to-name.json
@@ -102,22 +101,21 @@ jobs:
102101 cat $PR_TITLE
103102
104103
105-
106104 - name : Summarize Input
107105 run : |
108106 jq -n \
109107 --arg pull_request_title "${{ env.PR_TITLE }}" \
110108 --arg ticket_repo "${{ inputs.ticket_repo }}" \
111109 '{pull_request_title:$pull_request_title, ticket_repo:$ticket_repo}' \
112- > "$TMP_DATA"
110+ > /tmp/doc_repo.json
113111
114- cat "$TMP_DATA"
112+ cat /tmp/doc_repo.json
115113
116114 - name : Evaluate Policy
117115 run : |
118116 opa eval \
119- --data " attestation-policies/pull_request_ticket_naming_convention.rego" \
120- --data "$TMP_DATA" \
117+ --data attestation-policies/pull_request_ticket_naming_convention.rego \
118+ --data /tmp/doc_repo.json \
121119 --input "$ATTESTATION_FILE" \
122120 'data.pr_title_ticket_gate.failure_msg[msg]' \
123121 --format raw \
You can’t perform that action at this time.
0 commit comments