Skip to content

Merge pull request #1221 from EBISPOT/add-transform-ontology #356

Merge pull request #1221 from EBISPOT/add-transform-ontology

Merge pull request #1221 from EBISPOT/add-transform-ontology #356

name: Secret Detection
on:
push:
branches: [ "dev", "stable" ]
pull_request:
branches: [ "dev" ]
schedule:
# Run full scan weekly on Saturdays at 4 AM UTC
- cron: '0 4 * * 6'
workflow_dispatch:
permissions:
contents: read
security-events: write
pull-requests: write
jobs:
gitleaks-scan:
name: Gitleaks Secret Scanning
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Full history for comprehensive scanning
- name: Run Gitleaks scan
id: gitleaks
uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}
- name: Upload Gitleaks SARIF report
if: always()
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
category: 'secret-detection'