diff --git a/.github/workflows/Gitleaks scan workflow call on PR.yml b/.github/workflows/Gitleaks scan workflow call on PR.yml new file mode 100644 index 0000000..c4d892f --- /dev/null +++ b/.github/workflows/Gitleaks scan workflow call on PR.yml @@ -0,0 +1,15 @@ +name: Gitleaks scan workflow call on PR +on: + pull_request: + branches: + - main + +permissions: + issues: write + pull-requests: write + contents: read + +jobs: + call-gitleaks: + uses: SkyflowFoundry/.github/.github/workflows/Gitleaks Central workflow.yml@main + secrets: inherit diff --git a/.github/workflows/gitleaks-docker.yml b/.github/workflows/gitleaks-docker.yml deleted file mode 100644 index a563b2d..0000000 --- a/.github/workflows/gitleaks-docker.yml +++ /dev/null @@ -1,28 +0,0 @@ -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