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

Commit 3fbdea3

Browse files
committed
create policy_rego file
1 parent 1aec315 commit 3fbdea3

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/attestor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- name: fetch policy file
6161
run: |
6262
curl -o policy.rego "${{ inputs.policy-url }}"
63-
cat policy.rego
63+
cat policy.rego > POLICY_REGO
6464
6565
- name: Download OPA
6666
uses: open-policy-agent/setup-opa@v2
@@ -72,7 +72,7 @@ jobs:
7272
run: |
7373
echo '{"documentation_repo": "${{ inputs.documentation-repo }}"}' > /tmp/doc_repo.json
7474
opa eval \
75-
--data "${{inputs.policy-url}}" \
75+
--data "$POLICY_REGO" \
7676
--data /tmp/doc_repo.json \
7777
--input "$OUTPUT_FILE" \
7878
'data.documentationMerged.failure_msg' \

´

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
change attestor path
2+
# Please enter the commit message for your changes. Lines starting
3+
# with '#' will be ignored, and an empty message aborts the commit.
4+
#
5+
# On branch add-documentation-policy
6+
# Your branch is up to date with 'origin/add-documentation-policy'.
7+
#
8+
# Changes to be committed:
9+
# modified: .github/workflows/attestor.yml
10+
#

0 commit comments

Comments
 (0)