Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitleaks action scan repo not found secret in org #1486

Open
orange723 opened this issue Aug 26, 2024 · 0 comments
Open

gitleaks action scan repo not found secret in org #1486

orange723 opened this issue Aug 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@orange723
Copy link

Describe the bug
I request a License,set token and license to secret,but pr feat-xxx to dev scan always not found secret,action gitleaks cmd is

gitleaks detect --redact -v --exit-code=2 --report-format=sarif --report-path=results.sarif --log-level=debug --log-opts=--no-merges

Was local scan cmd
gitleaks detect --redact -v --exit-code=2 --report-format=sarif --report-path=results.sarif --log-level=debug
find more secret

How to fix or config gitleaks action

action example

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

Basic Info (please complete the following information):

  • OS: github action
  • Gitleaks Version: gitleaks-8.16.1

cc @zricethezav

@orange723 orange723 added the bug Something isn't working label Aug 26, 2024
@gitleaks gitleaks deleted a comment from orange723 Aug 26, 2024
@gitleaks gitleaks deleted a comment Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@orange723 and others