From f8651c2a075503efa845544b00401f035330a4d5 Mon Sep 17 00:00:00 2001 From: Terraform User Date: Tue, 21 May 2024 21:29:33 +0300 Subject: [PATCH] Added workflows --- .../workflows/gitleaks-secrets-validate.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/gitleaks-secrets-validate.yml diff --git a/.github/workflows/gitleaks-secrets-validate.yml b/.github/workflows/gitleaks-secrets-validate.yml new file mode 100644 index 0000000..0ad5ccb --- /dev/null +++ b/.github/workflows/gitleaks-secrets-validate.yml @@ -0,0 +1,19 @@ +name: Gitleaks Secrets Validate +on: + pull_request: + workflow_dispatch: +jobs: + scan: + name: gitleaks + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Run Gitleaks + uses: gitleaks/gitleaks-action@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITLEAKS_LICENSE: ${{ secrets.MINDBOX_GITLEAKS_LICENSE }}