Skip to content

Commit

Permalink
Add pre-commit-config.yaml
Browse files Browse the repository at this point in the history
rh-pre-commit will add some information to every commit
message. This will help reviewers make sure that developers
are using rh-pre-commit, preventing secrets from being leaked.

How to install and configure rh-pre-commit:
  `curl --silent "https://gitlab.corp.redhat.com/infosec-public/developer-workbench/tools/-/raw/rh-pre-commit-2.0.0/rh-pre-commit/quickstart.sh" | bash && rh-multi-pre-commit --hook-type commit-msg install`
c.f. https://source.redhat.com/departments/it/it-information-security/leaktk/leaktk_components/rh_pre_commit

rh-pre-commit.version: 2.0.1
rh-pre-commit.check-secrets: ENABLED
  • Loading branch information
Roming22 committed Oct 12, 2023
1 parent 318117b commit e1bbc8b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
repos:
- repo: https://gitlab.corp.redhat.com/infosec-public/developer-workbench/tools.git
rev: rh-pre-commit-2.0.0
hooks:
# If you have not run this hook on your system before, it may prompt you to
# log in for patterns, and you will need to try again.
#
# Docs: https://source.redhat.com/departments/it/it-information-security/leaktk/leaktk_components/rh_pre_commit
- id: rh-pre-commit
# Commit-msg attestation
# Make sure to run `rh-multi-pre-commit --hook-type commit-msg install`
# to enable the hook.
- id: rh-pre-commit.commit-msg

0 comments on commit e1bbc8b

Please sign in to comment.