From 20402e0ad5147a1be786f50378dce0e05341034c Mon Sep 17 00:00:00 2001 From: akashkumarmg Date: Mon, 28 Apr 2025 12:41:12 +0530 Subject: [PATCH 1/3] Create gitleaks.yml Create gitleaks workflow --- .github/workflows/gitleaks.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/gitleaks.yml diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml new file mode 100644 index 0000000..50a63f1 --- /dev/null +++ b/.github/workflows/gitleaks.yml @@ -0,0 +1,25 @@ +name: gitleaks-docker + +on: + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Run gitleaks-docker + run: | + docker pull zricethezav/gitleaks:latest + docker run -v ${{ github.workspace }}:/repo zricethezav/gitleaks:latest detect --source=/repo --verbose --exit-code=0 -f=json > gitleaks-results.json + cat gitleaks-results.json + + - name: Display Gitleaks JSON Output + run: | + echo "Displaying Gitleaks results..." + cat gitleaks-results.json From 720038d20d5cdeb30fe36cf44c62a8e51fff3d59 Mon Sep 17 00:00:00 2001 From: akashkumarmg Date: Mon, 28 Apr 2025 14:07:32 +0530 Subject: [PATCH 2/3] Update gitleaks.yml --- .github/workflows/gitleaks.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml index 50a63f1..a563b2d 100644 --- a/.github/workflows/gitleaks.yml +++ b/.github/workflows/gitleaks.yml @@ -16,9 +16,12 @@ jobs: - name: Run gitleaks-docker run: | docker pull zricethezav/gitleaks:latest - docker run -v ${{ github.workspace }}:/repo zricethezav/gitleaks:latest detect --source=/repo --verbose --exit-code=0 -f=json > gitleaks-results.json - cat gitleaks-results.json - + docker run \ + -v ${{ github.workspace }}:/repo \ + -e GITLEAKS_CONFIG=/repo/.github/gitleaks.toml \ + zricethezav/gitleaks:latest \ + detect --source=/repo --verbose --exit-code=0 -f=json > gitleaks-results.json + - name: Display Gitleaks JSON Output run: | echo "Displaying Gitleaks results..." From 64611c6da60a9dc11ced0cdd9295cd0fdf8ba43e Mon Sep 17 00:00:00 2001 From: akashkumarmg Date: Thu, 29 May 2025 11:39:45 +0530 Subject: [PATCH 3/3] test - SC-5774 - Update README.md testing for the gitleaks workflow changes --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c2ff947..472e311 100644 --- a/README.md +++ b/README.md @@ -276,7 +276,7 @@ Access at: ``` https:///sql/dashboards/v3/ ``` - +# ## Support For issues and feature requests, please contact your Skyflow representative or visit docs.skyflow.com.