From 74a577fb91e940f54db995d29f438fa3ba4b235d Mon Sep 17 00:00:00 2001 From: Ada Date: Sun, 28 Dec 2025 13:48:34 -0500 Subject: [PATCH 1/2] OPS [CJO] Fix Carmel workflow validation --- .github/workflows/carmel-judgment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/carmel-judgment.yml b/.github/workflows/carmel-judgment.yml index 2123c44..e6bdb96 100644 --- a/.github/workflows/carmel-judgment.yml +++ b/.github/workflows/carmel-judgment.yml @@ -49,4 +49,4 @@ jobs: if (!passed) core.setFailed("Carmel has rejected this PR."); - name: 😼 Carmel Observes the Results - run: echo "Verdict delivered." + run: echo "Verdict delivered. " From 6c0ee5d51a032d89adadaa4c67ffc82d08be0a1a Mon Sep 17 00:00:00 2001 From: Ada Date: Sun, 28 Dec 2025 14:00:42 -0500 Subject: [PATCH 2/2] OPS [CJO] Fix Carmel workflow validation 2.0 --- .github/workflows/carmel-judgment.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/carmel-judgment.yml b/.github/workflows/carmel-judgment.yml index e6bdb96..6f459b6 100644 --- a/.github/workflows/carmel-judgment.yml +++ b/.github/workflows/carmel-judgment.yml @@ -1,8 +1,16 @@ name: Carmel Judgment Protocol 😼 +permissions: + contents: read + pull-requests: write + issues: write + on: pull_request: types: [opened, synchronize, reopened] + push: + branches: + - "**" jobs: judgment: @@ -27,25 +35,23 @@ jobs: run: npm run test:run - name: 😼 Carmel Judgment Stamp - if: always() + if: ${{ always() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false }} uses: actions/github-script@v7 - env: - TESTS_OUTCOME: ${{ steps.tests.outcome }} with: script: | const passed = process.env.TESTS_OUTCOME == "success"; - + const body = passed ? "😼✨ **Carmel Approval Stamp™**\n\n> *Adequate work, human.*" : "😼🔥 **Carmel Chaos Stamp™**\n\n> *I sense weakness in these tests.*"; - + await github.rest.issues.createComment({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number, body }); - + if (!passed) core.setFailed("Carmel has rejected this PR."); - name: 😼 Carmel Observes the Results