gitleaks / gitleaks-action

Protect your secrets using Gitleaks-Action
https://gitleaks.io
Other
319 stars 122 forks source link

Pull requests getting stuck waiting for status to be reported #116

Open cerontrustly opened 1 year ago

cerontrustly commented 1 year ago

Hi,

I've been using successfully Gitleaks checks in my repos for a long time, but lately my PRs are getting stuck waiting for "Gitleaks report to be reported". After further investigation, it appears that no checks were run on the PR, though Gitleaks is still waiting for the report. It looks like GitHub is responding as it should. This started to happen about one month ago and keep happening. This lead me in disabling Gitleaks as a required status checks to be able to work. I was wondering if someone could help me solve this problem...I did not change both my workflow and rules files below during this period, which are pretty basic:

Workflow file:

name: gitleaks
on: [pull_request, push, workflow_dispatch]
jobs:
  scan:
    name: gitleaks
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - uses: gitleaks/gitleaks-action@v2
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}
          GITLEAKS_CONFIG: path/rules.toml

Rules file:

title = "Gitleaks Config File"

[extend]
useDefault = true

[allowlist]
description = "global allow list"

paths = [
  '''path/rules.toml'''
]

stopwords = [
]

image

Thank you, Igor