Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/ci-gate.yml
Original file line number Diff line number Diff line change
@@ -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"
Loading