diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml new file mode 100644 index 0000000..a563b2d --- /dev/null +++ b/.github/workflows/gitleaks.yml @@ -0,0 +1,28 @@ +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 \ + -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..." + cat gitleaks-results.json 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.