From ceb704595dbed3b9415eb8ddf7d3bf6436bcd2a2 Mon Sep 17 00:00:00 2001 From: Dragos Cojocari Date: Mon, 26 Jun 2023 13:58:22 +0300 Subject: [PATCH] chore: precommit hook update (#71) --- .circleci/config.yml | 14 ++++++++++++++ .gitleaksignore | 1 + .pre-commit-config.yaml | 7 +++++++ 3 files changed, 22 insertions(+) create mode 100644 .circleci/config.yml create mode 100644 .gitleaksignore create mode 100644 .pre-commit-config.yaml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..4877e29 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,14 @@ +version: 2.1 + +orbs: + prodsec: snyk/prodsec-orb@1.0 + +workflows: + version: 2 + CICD: + jobs: + - prodsec/secrets-scan: + name: Scan repository for secrets + context: + - snyk-bot-slack + channel: hammerhead-alerts diff --git a/.gitleaksignore b/.gitleaksignore new file mode 100644 index 0000000..0d10b79 --- /dev/null +++ b/.gitleaksignore @@ -0,0 +1 @@ +# add false positives here diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..a63e408 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,7 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: + - repo: https://github.com/gitleaks/gitleaks + rev: v8.17.0 + hooks: + - id: gitleaks