@@ -16,14 +16,15 @@ jobs:
1616 runs-on : ubuntu-latest
1717
1818 steps :
19- - name : Skip forks without write permission
20- if : github.event.pull_request.head.repo.fork == true && github.event.pull_request.maintainer_can_modify != true
19+ - name : Skip if token cannot write to this PR
20+ if : >
21+ github.event.pull_request.head.repo.fork == true &&
22+ github.event.pull_request.maintainer_can_modify != true
2123 run : |
22- echo "Skipping GCP Reviewer — fork PR has no write permission ."
24+ echo "Skipping GCP Reviewer — fork PR does not grant write permissions ."
2325 exit 0
2426
25- - name : Checkout govops
26- uses : actions/checkout@v4
27+ - uses : actions/checkout@v4
2728 with :
2829 fetch-depth : 0
2930
@@ -36,62 +37,29 @@ jobs:
3637 echo "number=${{ github.event.pull_request.number }}" >> $GITHUB_OUTPUT
3738 echo "url=${{ github.event.pull_request.html_url }}" >> $GITHUB_OUTPUT
3839
39- - name : Download governance diff artifact (best effort)
40- uses : actions/download-artifact@v4
41- with :
42- name : xentred-governance-diff-${{ github.run_id }}
43- continue-on-error : true
44-
45- - name : Generate GovOps GCP Review Packet
40+ - name : Load classification + severity
4641 run : |
4742 mkdir -p review
43+ [[ -f CLASSIFICATION.md ]] && cp CLASSIFICATION.md review/CLASSIFICATION.md || echo "No classification" > review/CLASSIFICATION.md
44+ [[ -f SEVERITY.txt ]] && cp SEVERITY.txt review/SEVERITY.txt || echo "Unknown" > review/SEVERITY.txt
4845
49- CLASSIFICATION="No classification artifact found"
50- if [[ -f CLASSIFICATION.md ]]; then
51- CLASSIFICATION="$(cat CLASSIFICATION.md)"
52- fi
53-
54- SEVERITY="Unknown"
55- if [[ -f SEVERITY.txt ]]; then
56- SEVERITY="$(cat SEVERITY.txt)"
57- fi
58-
59- cat > review/GCP_REVIEW.md <<'EOF'
60- # 🧩 GovOps Governance Change Proposal (GCP) Review Packet
61-
62- # # ✅ Summary
63- GovOps provides advisory governance review only.
64-
65- # # ✅ Severity
66- <SEVERITY>
67-
68- # # ✅ Classification
69- <CLASSIFICATION>
70-
71- # # ✅ Reviewer Checklist
72- - [ ] Contract / boundary impacts validated
73- - [ ] rexce contract changes confirmed
74- - [ ] No shadow validators
75- - [ ] PDR boundaries preserved
76-
77- EOF
78-
79- sed -i "s|<SEVERITY>|$SEVERITY|g" review/GCP_REVIEW.md
80- sed -i "s|<CLASSIFICATION>|$CLASSIFICATION|g" review/GCP_REVIEW.md
81-
82- - name : Upload GCP Review Packet
46+ - name : Upload review packet
8347 uses : actions/upload-artifact@v4
8448 with :
8549 name : govops-gcp-review-${{ github.run_id }}
8650 path : review/
8751 retention-days : 14
8852
89- - name : Post GovOps summary comment
53+ - name : Post summary comment
9054 uses : peter-evans/create-or-update-comment@v4
9155 with :
9256 token : ${{ secrets.GITHUB_TOKEN }}
9357 issue-number : ${{ steps.meta.outputs.number }}
9458 body : |
9559 ### 🧩 GovOps GCP Review Packet Ready
96- Advisory-only review completed.
97- ` `
60+
61+ Severity: **$(cat review/SEVERITY.txt)**
62+ Classification summary attached (artifact).
63+
64+ GovOps review is **advisory only**.
65+ Enforcement: **rexce** (Phase‑2) + **Xcectua** (Phase‑4).
0 commit comments