Skip to content

added gitleaks workflow - #93

Open
0xcucumbersalad wants to merge 1 commit into
mainfrom
add/sast-workflow
Open

added gitleaks workflow#93
0xcucumbersalad wants to merge 1 commit into
mainfrom
add/sast-workflow

Conversation

@0xcucumbersalad

@0xcucumbersalad 0xcucumbersalad commented Aug 14, 2026

Copy link
Copy Markdown

added gitleaks workflow


Summary by cubic

Adds a SAST GitHub Actions workflow that runs gitleaks on pushes to main and on pull requests, failing CI when secrets are detected. This enforces secret scanning on PR ranges and uses full history checkout to catch previously committed or rotated secrets.

Review and rollout

  • Adds .github/workflows/sast.yml with job “Gitleaks (secret history)” using actions/checkout (full history) and gitleaks/gitleaks-action, both pinned to SHAs.
  • Triggers on pull_request and push to main; uses concurrency group sast-${{ github.ref }} to cancel redundant runs; 10-minute timeout.
  • Uses minimal permissions: contents: read and pull-requests: read for PR commit access.
  • Required for org-owned/private repos: add a repo/org secret GITLEAKS_LICENSE (Settings > Secrets and variables > Actions). The job also uses GITHUB_TOKEN.
  • CI-only change; no runtime/app behavior changes.

Written for commit 0a37d20. Summary will update on new commits.

Review in cubic

@0xcucumbersalad
0xcucumbersalad requested a review from a team August 14, 2026 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant