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

fix(ci): run the gitleaks CLI instead of the license-gated action

Ashutosh Swamy907c13f9d9c3
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c309e08..6b43710 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -44,10 +44,18 @@ jobs:
with:
fetch-depth: 0
+ # The gitleaks-action wrapper demands a paid GITLEAKS_LICENSE for organisation repos and
+ # never receives secrets on fork PRs. The open-source CLI needs neither, so run it directly
+ # (pinned version, checksum-verified) and pick up .gitleaks.toml from the repo root.
- name: Run Gitleaks Security Scan
- uses: gitleaks/gitleaks-action@e0c47f4f8be36e29cdc102c57e68cb5cbf0e8d1e # v3
env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GITLEAKS_VERSION: 8.30.1
+ GITLEAKS_SHA256: 551f6fc83ea457d62a0d98237cbad105af8d557003051f41f3e7ca7b3f2470eb
+ run: |
+ 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 .
# =============================================================
# Stage 2: Dependency Security Audit