Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.

Commit 20dd5ad

Browse files
committed
fix
1 parent d5ee142 commit 20dd5ad

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/naming-convention.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
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 }}
@@ -89,7 +89,6 @@ jobs:
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 \

0 commit comments

Comments
 (0)