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): restore SHA pinning and scope workflow permissions

rishabh816c82d538a1
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 577b7bb..c309e08 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -22,7 +22,6 @@ 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
@@ -140,13 +139,19 @@ jobs:
needs: [gitleaks, security-audit, build, test]
if: always() && github.event_name == 'pull_request' && github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
+ # Only this job posts the summary comment; the other jobs stay least-privilege.
+ permissions:
+ contents: read
+ pull-requests: write
+ issues: write
+ actions: read
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Update Sticky PR Comment with CI Results
- uses: arungupta1526/reviewground@v1
+ uses: arungupta1526/reviewground@a95e4dab1fd2b8bb9d02b6f3fc9a7f5c89d1cc76 # v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
mode: 'summary'
diff --git a/.github/workflows/reviewground-slash.yml b/.github/workflows/reviewground-slash.yml
index bfeb307..a78f98b 100644
--- a/.github/workflows/reviewground-slash.yml
+++ b/.github/workflows/reviewground-slash.yml
@@ -30,7 +30,7 @@ jobs:
steps:
- name: Run ReviewGround Slash Command
- uses: arungupta1526/reviewground@v1
+ uses: arungupta1526/reviewground@a95e4dab1fd2b8bb9d02b6f3fc9a7f5c89d1cc76 # v1
with:
mode: 'slash-command'
github-token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/reviewground.yml b/.github/workflows/reviewground.yml
index f117eed..00db910 100644
--- a/.github/workflows/reviewground.yml
+++ b/.github/workflows/reviewground.yml
@@ -15,7 +15,6 @@ on:
permissions:
contents: read
pull-requests: write
- issues: write
actions: read
checks: write
@@ -36,7 +35,7 @@ jobs:
fetch-depth: 0
- name: Run ReviewGround AI Review
- uses: arungupta1526/reviewground@v1
+ uses: arungupta1526/reviewground@a95e4dab1fd2b8bb9d02b6f3fc9a7f5c89d1cc76 # v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
enable-pr-description-update: 'true'
diff --git a/.gitleaksignore b/.gitleaksignore
deleted file mode 100644
index d59df90..0000000
--- a/.gitleaksignore
+++ /dev/null
@@ -1,3 +0,0 @@
-# Gitleaks ignore file for false positives in automated unit test fixtures
-e6a819556326f74bbfbecae33a0144bc65f129b1:apps/payment-api/src/__tests__/gateway-hardening-invariants.test.js:generic-api-key:369
-d92fc5b611ff1786448f211646381ae026daa47b:apps/payment-api/src/__tests__/gateway-hardening-invariants.test.js:generic-api-key:793