Skip to content

fix: CI/CD failure

fix: CI/CD failure #1

on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
secret-scan:
name: Scan for secrets
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # secrets can hide in old commits
- name: Run Gitleaks
uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: >-
--redact
--report-format sarif
--report-path gitleaks-results.sarif
--exit-code 1
- name: Upload SARIF to GitHub Security tab
if: always()
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: gitleaks-results.sarif
category: secret-scanning