Skip to content

Added gitleaks secret scanning - #122

Merged
IanCou merged 2 commits into
candiedoperation:masterfrom
ArushNo1:chore/gitleaks
Nov 13, 2026
Merged

IanCou merged 2 commits into
candiedoperation:masterfrom
ArushNo1:chore/gitleaks

Conversation

@ArushNo1

@ArushNo1 ArushNo1 commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Description

Added Gitleaks secret scanning.

  • One example secret in the Gitea webhook auth test (test/gitea-webhook-auth.test.js in older history, now peopleportal/server/test/unit/) is allowlisted in
    .gitleaks.toml. The allowlist matches that exact key in that file only.
  • PRs and pushes to master scan only the new commits. A manual run (workflow_dispatch) scans the entire git history.
  • The full history currently scans clean (489 commits).

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Chore / dependency update

Testing

  • Ran gitleaks git -v --redact locally on the full history (489 commits): no leaks found.
  • Confirmed the sample key in the Gitea webhook auth test was flagged before adding .gitleaks.toml and is no longer flagged after.
  • Reviewers: check that the Gitleaks job on this PR passes and that its log shows only this PR's commit(s) scanned. Optionally trigger a manual run (Actions → Gitleaks Secret Scan → Run workflow) to confirm the full-history scan passes in CI.

Screenshots

N/A, no UI changes.

Checklist

  • Self-reviewed my own code
  • No console.log / debug statements left in
  • Tested locally

@IanCou
IanCou merged commit 676a7fd into candiedoperation:master Nov 13, 2026
1 check passed
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.

2 participants