Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/gitleaks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Gitleaks Secret Scan

on:
pull_request:
branches: [main, master]
schedule:
- cron: '0 3 * * 1' # Weekly Monday 3am UTC
workflow_dispatch:

jobs:
gitleaks:
name: Scan for secrets
runs-on: ubuntu-latest

steps:
# Checkout full history (important for secret scanning)
- uses: actions/checkout@v4
with:
fetch-depth: 0

# Install open-source Gitleaks binary (FREE, no license)
- name: Install Gitleaks
run: |
wget -q https://github.com/gitleaks/gitleaks/releases/latest/download/gitleaks-linux-amd64.tar.gz
tar -xzf gitleaks-linux-amd64.tar.gz
sudo mv gitleaks /usr/local/bin/

# Run scan
- name: Run Gitleaks
run: |
gitleaks detect \
--source . \
--verbose \
--exit-code 1


# name: Gitleaks Secret Scan
# on:
# pull_request:
# branches: [main, master]
# schedule:
# - cron: '0 3 * * 1' # Weekly Monday 3am UTC
# workflow_dispatch: # Allow manual trigger

# jobs:
# gitleaks:
# name: Scan for secrets
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - uses: gitleaks/gitleaks-action@v2
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# GITLEAKS_ENABLE_COMMENTS: false
17 changes: 17 additions & 0 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Semgrep SAST
on:
pull_request:
branches: [main, master]
schedule:
- cron: '0 4 * * 1' # Weekly Monday 4am UTC
workflow_dispatch: # Allow manual trigger

jobs:
semgrep:
name: Static analysis
runs-on: ubuntu-latest
container:
image: semgrep/semgrep
steps:
- uses: actions/checkout@v4
- run: semgrep scan --config auto --error --quiet
Loading