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

Commit 1aec315

Browse files
committed
add dynamic policy file
1 parent c89cfac commit 1aec315

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/attestor.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@ jobs:
5959

6060
- name: fetch policy file
6161
run: |
62-
# curl -o policy.rego "$POLICY_URL"
62+
curl -o policy.rego "${{ inputs.policy-url }}"
6363
cat policy.rego
6464
65-
6665
- name: Download OPA
6766
uses: open-policy-agent/setup-opa@v2
6867
with:
@@ -73,7 +72,7 @@ jobs:
7372
run: |
7473
echo '{"documentation_repo": "${{ inputs.documentation-repo }}"}' > /tmp/doc_repo.json
7574
opa eval \
76-
--data policy.rego \
75+
--data "${{inputs.policy-url}}" \
7776
--data /tmp/doc_repo.json \
7877
--input "$OUTPUT_FILE" \
7978
'data.documentationMerged.failure_msg' \

0 commit comments

Comments
 (0)