Skip to content

A self-hosted UPI & COD payment gateway with zero per-transaction platform fees, universal JavaScript checkout integration, dynamic QR payments, WhatsApp OTP authentication, and automated payment verification.

JavaScript

feat(ci): isolate slash commands, harden reviewground triggers, and whitelist seed commit in gitleaks

ArunGupta1526d5104593459c
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d80e6f1..b6c4a2b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -22,6 +22,7 @@ on:
permissions:
contents: read
pull-requests: write
+ issues: write
actions: read
# Cancel in-progress runs for PRs to save runner minutes, but queue safely on main branch
@@ -72,7 +73,7 @@ jobs:
run: npm ci
- name: Security Audit (npm audit)
- run: npm audit --audit-level=high
+ run: npm audit --omit=dev --audit-level=high
# =============================================================
# Stage 3: TypeScript Compilation & Production Build Check
@@ -137,7 +138,7 @@ jobs:
ci-summary:
name: 📊 5. Update ReviewGround CI Summary
needs: [gitleaks, security-audit, build, test]
- if: always() && github.event_name == 'pull_request'
+ if: always() && github.event_name == 'pull_request' && github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
diff --git a/.github/workflows/reviewground-slash.yml b/.github/workflows/reviewground-slash.yml
new file mode 100644
index 0000000..0317bdf
--- /dev/null
+++ b/.github/workflows/reviewground-slash.yml
@@ -0,0 +1,44 @@
+name: 💬 ReviewGround Interactive PR Slash Commands
+
+on:
+ issue_comment:
+ types: [created]
+
+permissions:
+ contents: read
+ pull-requests: write
+ issues: write
+ actions: read
+
+concurrency:
+ group: reviewground-slash-${{ github.event.issue.number }}
+ cancel-in-progress: false
+
+jobs:
+ slash-command:
+ name: 💬 ReviewGround Slash Command Handler
+ runs-on: ubuntu-latest
+ if: |
+ github.event.issue.pull_request != null &&
+ github.actor != 'dependabot[bot]' &&
+ (contains(github.event.comment.body, '@reviewground') ||
+ contains(github.event.comment.body, '/review') ||
+ contains(github.event.comment.body, '@review'))
+
+ steps:
+ - name: Run ReviewGround Slash Command
+ uses: arungupta1526/reviewground@v1
+ with:
+ mode: 'slash-command'
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+ env:
+ GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
+ GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
+ OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
+ OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
+ ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
+ DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
+ PROVIDER: ${{ vars.PROVIDER || '' }}
+ MODEL: ${{ vars.MODEL || '' }}
+ LLM_BASE_URL: ${{ secrets.LLM_BASE_URL }}
+ LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
diff --git a/.github/workflows/reviewground.yml b/.github/workflows/reviewground.yml
index 5018b47..421c7ad 100644
--- a/.github/workflows/reviewground.yml
+++ b/.github/workflows/reviewground.yml
@@ -9,29 +9,24 @@ on:
- '.gitignore'
- 'LICENSE'
- '.vscode/**'
- issue_comment:
- types: [created]
workflow_dispatch:
permissions:
contents: read
pull-requests: write
+ issues: write
actions: read
checks: write
concurrency:
group: reviewground-${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
review:
name: 🛡️ ReviewGround Code Review & Verification
runs-on: ubuntu-latest
- if: |
- github.event_name == 'pull_request' ||
- github.event_name == 'workflow_dispatch' ||
- (github.event_name == 'issue_comment' && github.event.issue.pull_request &&
- (contains(github.event.comment.body, '@reviewground') || contains(github.event.comment.body, '/review') || contains(github.event.comment.body, '@review')))
+ if: github.actor != 'dependabot[bot]'
steps:
- name: Checkout repository
@@ -54,3 +49,5 @@ jobs:
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
PROVIDER: ${{ vars.PROVIDER || '' }}
MODEL: ${{ vars.MODEL || '' }}
+ LLM_BASE_URL: ${{ secrets.LLM_BASE_URL }}
+ LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
diff --git a/.gitleaks.toml b/.gitleaks.toml
new file mode 100644
index 0000000..08e0b86
--- /dev/null
+++ b/.gitleaks.toml
@@ -0,0 +1,5 @@
+[allowlist]
+description = "Ignore historical seed commit from initial repository creation"
+commits = [
+ "2c2b4918b1b59f1287108b95906ae65032f878f8"
+]