Skip to content

ci: Optimize PR pipeline - path gating, dedup secrets scan, CD push-only #101

ci: Optimize PR pipeline - path gating, dedup secrets scan, CD push-only

ci: Optimize PR pipeline - path gating, dedup secrets scan, CD push-only #101

Workflow file for this run

name: Secrets Scan
on:
pull_request:
branches: [ "main" ]
push:
branches: [ "main" ]
jobs:
gitleaks:
name: Gitleaks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install gitleaks CLI
run: |
GITLEAKS_VERSION="8.28.0"
curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" -o /tmp/gitleaks.tar.gz
tar -xzf /tmp/gitleaks.tar.gz -C /tmp gitleaks
/tmp/gitleaks version
- name: Run gitleaks
run: /tmp/gitleaks git --redact --config .gitleaks.toml