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 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