Skip to content

chore: setup pre-commit, CI secret scanning, and initial lint fixes - #25

Draft
moghit-eou wants to merge 5 commits into
Medical-Informatics-Platform:masterfrom
moghit-eou:feat/gitleaks-pre-commit-hook
Draft

chore: setup pre-commit, CI secret scanning, and initial lint fixes#25
moghit-eou wants to merge 5 commits into
Medical-Informatics-Platform:masterfrom
moghit-eou:feat/gitleaks-pre-commit-hook

Conversation

@moghit-eou

@moghit-eou moghit-eou commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Add gitleaks pre-commit hook and CI workflow

  • Adds gitleaks to .pre-commit-config.yaml to catch hardcoded secrets locally before commit.
  • Adds a CI workflow that runs gitleaks on pull requests and uploads findings as SARIF to GitHub code scanning.
  • Lints existing files (whitespace, formatting cleanup) to bring them in line with the new pre-commit hooks.

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@moghit-eou
moghit-eou force-pushed the feat/gitleaks-pre-commit-hook branch from efe24dd to afcc697 Compare August 18, 2026 10:35
@moghit-eou moghit-eou changed the title chore: setup pre-commit and initial lint fixes chore: setup pre-commit, CI secret scanning, and initial lint fixes Aug 18, 2026
@moghit-eou
moghit-eou force-pushed the feat/gitleaks-pre-commit-hook branch 2 times, most recently from 82e002d to 484d8f2 Compare August 18, 2026 22:09
@moghit-eou
moghit-eou force-pushed the feat/gitleaks-pre-commit-hook branch from b69f4ee to 1a428d9 Compare August 18, 2026 22:13
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