From 3b182ca9c7077ed4fbf6d3414f2c54cc70aec396 Mon Sep 17 00:00:00 2001 From: Stephen Baker Date: Wed, 11 Mar 2026 21:36:57 -0700 Subject: [PATCH] Create CI Gate workflow for pull requests Add CI Gate workflow for pull requests to main branch. --- .github/workflows/ci-gate.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/ci-gate.yml diff --git a/.github/workflows/ci-gate.yml b/.github/workflows/ci-gate.yml new file mode 100644 index 0000000..7753e8e --- /dev/null +++ b/.github/workflows/ci-gate.yml @@ -0,0 +1,21 @@ +name: CI Gate + +on: + pull_request: + branches: + - main + +jobs: + ci-gate: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install dependencies + run: npm install @prompd/cli + + - name: Run CI Gate + run: | + DIFF_CONTENT=$(git diff origin/main...HEAD) + npx prompd run @prompd/ci-gate --param diff="$DIFF_CONTENT" --param rules='["security","error-handling"]' --param severity_threshold="warning"