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(workflows): harden permissions, pin docker checkout ref, and optimize triggers

ArunGupta1526532481f34676
diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml
index 21817ec..2271f14 100644
--- a/.github/workflows/actionlint.yml
+++ b/.github/workflows/actionlint.yml
@@ -28,7 +28,7 @@ jobs:
ACTIONLINT_SHA256: 8aca8db96f1b94770f1b0d72b6dddcb1ebb8123cb3712530b08cc387b349a3d8
run: |
set -euo pipefail
- curl -sSfL -o actionlint.tar.gz \
+ curl --retry 3 --connect-timeout 15 --max-time 120 -sSfL -o actionlint.tar.gz \
"https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VERSION}/actionlint_${ACTIONLINT_VERSION}_linux_amd64.tar.gz"
echo "${ACTIONLINT_SHA256} actionlint.tar.gz" | sha256sum -c -
tar -xzf actionlint.tar.gz actionlint
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 73d7c6f..222954f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -21,7 +21,6 @@ on:
permissions:
contents: read
- pull-requests: write
actions: read
# Cancel in-progress runs for PRs to save runner minutes, but queue safely on main branch
diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml
index e8f2bc0..b143b41 100644
--- a/.github/workflows/docker-build-push.yml
+++ b/.github/workflows/docker-build-push.yml
@@ -35,6 +35,7 @@ jobs:
- name: Checkout Code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
+ ref: ${{ github.event.workflow_run.head_sha || github.sha }}
fetch-depth: 2
# -------------------------------------------------------------
@@ -45,8 +46,7 @@ jobs:
- name: Check for Production Container Changes
id: filter
run: |
- # The container assets (Dockerfile, docker-compose.yml) are not part of this
- # repository yet. Skip the whole build/scan/push pipeline instead of failing.
+ # Verify Dockerfile is present before attempting container build/scan/push.
if [ ! -f Dockerfile ]; then
echo "::notice::No Dockerfile found in the repository - skipping container build, scan and push."
echo "should_build=false" >> "$GITHUB_OUTPUT"
diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml
index d4967aa..11d87cf 100644
--- a/.github/workflows/pr-title.yml
+++ b/.github/workflows/pr-title.yml
@@ -5,7 +5,6 @@ on:
types:
- opened
- edited
- - synchronize
- reopened
permissions: