From 1cbf4848b6a329fd959b260440fe0bd225f9eb38 Mon Sep 17 00:00:00 2001 From: Dieu Nguyen Date: Thu, 3 Aug 2023 15:19:36 +0700 Subject: [PATCH 1/2] Add gitleaks schedule workflow to scan all files in the repo --- .github/workflows/gitleaks-schedule-scan.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/gitleaks-schedule-scan.yml diff --git a/.github/workflows/gitleaks-schedule-scan.yml b/.github/workflows/gitleaks-schedule-scan.yml new file mode 100644 index 0000000..f13974c --- /dev/null +++ b/.github/workflows/gitleaks-schedule-scan.yml @@ -0,0 +1,14 @@ +# This file is generate automatically by a platform tool +# You can modify the schedule but do not remove this file +# Please read more at https://employmenthero.atlassian.net/l/cp/uqVVmDT0 +# The Gitleaks scanning report can be found at https://docs.google.com/spreadsheets/d/1ourHVLD7Hfs4PMpOsc7kKzjg104vvcPa8OtnkvRRRcc +name: gitleaks-schedule-scan + +on: + schedule: + - cron: '16 15 * * 2' + workflow_dispatch: +jobs: + gitleaks: + uses: thinkei/eh-workflows/.github/workflows/gitleaks-schedule-scan.yml@main + secrets: inherit From 3c95714719cd04f60d5b51fc304879fa83bfaa1d Mon Sep 17 00:00:00 2001 From: Dieu Nguyen Date: Thu, 3 Aug 2023 15:19:38 +0700 Subject: [PATCH 2/2] Add pre-commit configuration file --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..b472f3c --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,7 @@ +# please read more at https://employmenthero.atlassian.net/wiki/spaces/PLAT/pages/2570453361/Gitleaks#Local-scan-setup +# to make gitleaks scan your commit at local machine +repos: + - repo: https://github.com/gitleaks/gitleaks + rev: v8.17.0 + hooks: + - id: gitleaks-docker