This repo is a central place to store organisation wide files such as callable workflows and standard templates to be used in other repos.
- A callable workflow, (
org-gitleaks-check.yml, to run agitleakscheck on pushed code. - A workflow, (
gitleaks.yml, that callsorg-gitleaks-check.yml, to be used in all our repos.- This file appears both in
.github/workflowsandrepo_files/.github/workflows, as this repo itself uses it; therepo_filesfolder is designed so that it's content can be copied straight into another repo.
- This file appears both in
.gitleaksignorecontains fingerprints of false positives found bygitleaks, which are ignored- A
pre-commithook to rungitleakslocally whenever a commit is attempted,.pre-commit-config.yaml.- This file appears both in this repo's root and in
repo_files, as this repo itself uses it; therepo_filesfolder is designed so that it's content can be copied straight into another repo.
- This file appears both in this repo's root and in
- A guide, Setting up a
pre-commit hookto rungitleaks. - A
gitleaksfolder, containing rules definitions:gitleaks-nhsbsa.toml- standard NHSBSA rules filegitleaks.toml- additional rules file that extends the standard rules
- Bash scripts to
- scan all repos in organisation and output CSV of
gitleaksusage,check_gitleaks_usage.sh, withrepo_namevisibility, Private or Publichas_gitleaks_workflow, does repo contain a workflow with name containing "gitleaks"?has_gitleaks_secret, does repo have a secret forgitleakslicense?
- add a secret containing the
gitleakslicense to all private repos,set_gitleaks_secret.sh-
- scan all repos in organisation and output CSV of
- A
gitleaks_testsfile intestfolder, with a few fake NHS numbers that can be used as a test thatgitleaksis set up correctly.
The contents of this folder are designed to be copied into all repos within the organisation. If any new workflows or general files become useful globally, then here is a good place to store them.
- A workflow, (
gitleaks.yml, that calls (org-gitleaks-check.yml, to be used in all organisation repos. - A
pre-commithook to rungitleakslocally whenever a commit is attempted,.pre-commit-config.yaml. - Standard NHSBSA repo documentation.
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- LICENSE.md
- SECRETS.md
- SECURITY.md
- Note that there is no standard
README.mdincluded, as different repos will need differentREADMEs
We operate a code of conduct for all contributors.
See our contributing guide for guidance on how to contribute.
Released under the Apache 2 license.