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(gitleaks): use free upstream CLI to fix org license failure

Om Singh Chouhan81f29ac01518
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c309e08..2f2e046 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -44,10 +44,32 @@ jobs:
with:
fetch-depth: 0
- - name: Run Gitleaks Security Scan
- uses: gitleaks/gitleaks-action@e0c47f4f8be36e29cdc102c57e68cb5cbf0e8d1e # v3
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ - name: Download Gitleaks CLI
+ run: |
+ GITLEAKS_VERSION="8.21.2"
+ ARCHIVE="gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz"
+ URL="https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/${ARCHIVE}"
+ curl -sSLo "$ARCHIVE" "$URL"
+ tar -xzf "$ARCHIVE" gitleaks
+ sudo mv gitleaks /usr/local/bin/gitleaks
+ gitleaks version
+
+ - name: Run Gitleaks Scan
+ run: |
+ if [ "${{ github.event_name }}" = "pull_request" ]; then
+ gitleaks detect \
+ --source . \
+ --redact \
+ --config .gitleaks.toml \
+ --log-opts="origin/${{ github.base_ref }}..HEAD" \
+ --verbose
+ else
+ gitleaks detect \
+ --source . \
+ --redact \
+ --config .gitleaks.toml \
+ --verbose
+ fi
# =============================================================
# Stage 2: Dependency Security Audit
@@ -158,4 +180,4 @@ jobs:
gitleaks-result: ${{ needs.gitleaks.result }}
audit-result: ${{ needs.security-audit.result }}
build-result: ${{ needs.build.result }}
- test-result: ${{ needs.test.result }}
+ test-result: ${{ needs.test.result }}
\ No newline at end of file