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

Update .github/workflows/ci.yml

Om Singh Chouhan154137aa8c1a
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2f2e046..209044b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -44,31 +44,16 @@ jobs:
with:
fetch-depth: 0
- - 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 pinned, checksum-verified Gitleaks OSS CLI to bypass org-license gate
+ - name: Run Gitleaks Security Scan
+ env:
+ GITLEAKS_VERSION: 8.30.1
+ GITLEAKS_SHA256: 551f6fc83ea457d62a0d98237cbad105af8d557003051f41f3e7ca7b3f2470eb
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
+ curl -sSfL -o gitleaks.tar.gz "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz"
+ echo "${GITLEAKS_SHA256} gitleaks.tar.gz" | sha256sum -c -
+ tar -xzf gitleaks.tar.gz gitleaks
+ ./gitleaks git --redact --verbose --exit-code 1 .
fi
# =============================================================