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

ci(security): add GitHub CodeQL SAST security scanning workflow

ArunGupta1526df6d27b700b5
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
new file mode 100644
index 0000000..3d8b938
--- /dev/null
+++ b/.github/workflows/codeql.yml
@@ -0,0 +1,54 @@
+name: "CodeQL Analysis"
+
+on:
+ push:
+ branches:
+ - main
+ paths:
+ - 'apps/**'
+ - 'packages/**'
+ - '.github/workflows/codeql.yml'
+ pull_request:
+ branches:
+ - main
+ paths:
+ - 'apps/**'
+ - 'packages/**'
+ - '.github/workflows/codeql.yml'
+ schedule:
+ - cron: '0 4 * * 1'
+
+permissions:
+ contents: read
+
+jobs:
+ analyze:
+ name: CodeQL Security Scan (${{ matrix.language }})
+ runs-on: ubuntu-latest
+ timeout-minutes: 15
+ permissions:
+ security-events: write
+ contents: read
+ actions: read
+
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - language: javascript-typescript
+ build-mode: none
+
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
+
+ - name: Initialize CodeQL
+ uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
+ with:
+ languages: ${{ matrix.language }}
+ build-mode: ${{ matrix.build-mode }}
+
+ - name: Perform CodeQL Analysis
+ uses: github/codeql-action/analyze@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
+ with:
+ category: "/language:${{ matrix.language }}"