From 7ab0c3d69f1f32d61574ee0f15938672d21a0dee Mon Sep 17 00:00:00 2001 From: Indra Wahyudi Date: Thu, 27 Nov 2025 12:20:39 +0700 Subject: [PATCH 1/2] test: modify restricted file GOVERNANCE.md to verify BDFL exemption --- GOVERNANCE.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GOVERNANCE.md b/GOVERNANCE.md index 8b3dad2..147e70c 100644 --- a/GOVERNANCE.md +++ b/GOVERNANCE.md @@ -34,4 +34,6 @@ Major changes (e.g., new language tracks, changing CI/CD logic) must follow the ## 3. Enforcement * Automation is the first line of defense. If CI fails, Governance does not apply—the code is simply invalid. -* Humans only review code that has passed the automated gauntlet. \ No newline at end of file +* Humans only review code that has passed the automated gauntlet. + + \ No newline at end of file From e1b836306f00d3be737ac2945c57a3b89132db6b Mon Sep 17 00:00:00 2001 From: Indra Wahyudi Date: Thu, 27 Nov 2025 12:30:21 +0700 Subject: [PATCH 2/2] fix: robust BDFL check with debug info --- .github/workflows/governance-enforcer.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/governance-enforcer.yml b/.github/workflows/governance-enforcer.yml index 1c8a55c..a3c2b67 100644 --- a/.github/workflows/governance-enforcer.yml +++ b/.github/workflows/governance-enforcer.yml @@ -55,8 +55,14 @@ jobs: OWNERSHIP.md LICENSE + - name: Debug Context (Who am I?) + run: | + echo "Actor: ${{ github.actor }}" + echo "Repository Owner: ${{ github.repository_owner }}" + - name: Block Tampering - if: steps.integrity_check.outputs.any_changed == 'true' && github.actor != 'itwahjoedi' + # Gunakan contains agar tidak sensitif case (misal ItWahjoedi vs itwahjoedi) + if: steps.integrity_check.outputs.any_changed == 'true' && !contains(github.actor, 'itwahjoedi') run: | echo "::error title=Platform Integrity Violated::You modified restricted files (tests/ or .github/). Revert these changes immediately." exit 1