Skip to content
Merged
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
43 changes: 43 additions & 0 deletions .github/workflows/security-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Nightly security scan. Shared logic: bloxwap/.github/.github/workflows/security-scan.yml
name: security-nightly

on:
schedule:
- cron: "38 13 * * 1-6" # Mon-Sat 13:38 UTC: incremental secrets window
- cron: "38 13 * * 0" # Sunday: full git history for gitleaks
workflow_dispatch:
inputs:
secrets-mode:
type: choice
options: [incremental, full]
default: full
# Re-run the full scan (enforced) when the scan setup or its ignore lists change.
pull_request:
paths:
- .github/workflows/security-nightly.yml
- osv-scanner.toml
- .gitleaksignore
- .gitleaks.toml

permissions: {}

concurrency:
group: security-nightly-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: false

jobs:
scan:
# Fork guard: never run fork PR code on self-hosted minis
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
uses: bloxwap/.github/.github/workflows/security-scan.yml@90c5e7f20cef611a83ea7db51f9b85478d714fa6 # v1
permissions:
contents: read
with:
runs-on: '["self-hosted","macOS","ARM64"]'
profile: nightly
secrets-mode: ${{ inputs.secrets-mode || (github.event.schedule == '38 13 * * 0' && 'full' || 'incremental') }}
deps: false # secrets only: no dependency manifests to scan
upload-sarif: false # no GHAS code scanning
upload-secret-report: false
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_SECURITY_WEBHOOK_URL }} # optional; without it Slack is skipped