Open Dr-DevOps opened 1 year ago
Is there any resolution or workaround 🤔 ^^ 🧑💻?
I am still looking for the same.
You can disabling uploading the artifact by setting GITLEAKS_ENABLE_UPLOAD_ARTIFACT to false like this:
`
runs-on: [self-hosted, linux, build]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: AdmincontrolAS/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}}
GITLEAKS_ENABLE_UPLOAD_ARTIFACT: false
`
I am using a self-hosted GitHub Runner. But when I run Git Leaks it through error to write and upload artifacts on GitHub
Also I am looking for an exit code in case leaks are found to Trigger Slack notifications which I am not able to do so.
GitHub Action Workflow file
cc @zricethezav