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

Not possible to apply GITLEAKS_NOTIFY_USER_LIST #132

Open
pylapp opened this issue Jan 23, 2024 · 6 comments
Open

Not possible to apply GITLEAKS_NOTIFY_USER_LIST #132

pylapp opened this issue Jan 23, 2024 · 6 comments

Comments

@pylapp
Copy link

pylapp commented Jan 23, 2024

Using the following gitleaks-actions.yaml bellow located in the .github/workflows folder, the GitHub actions on push fails with the error:

You have an error in your yaml syntax on line 15
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_NOTIFY_USER_LIST: @foo @bar @wizz

where the line 15 is the line with GITLEAKS_NOTIFY_USER_LIST env variable and foo, bar and wizz are three users added in the GitHub repository where the GitHub Actions is applied (handles have been anonymized)

However it seems the syntax of GITLEAKS_NOTIFY_USER_LIST is correct, how to fix this issue?

@aman-nankani-inno
Copy link

Hello, did you get it to run? Even I am having the same error and the emails are not being sent out to the users mentioned in the list.

@tim-chaffin
Copy link

Did you try commas instead of spaces?
e.g. GITLEAKS_NOTIFY_USER_LIST:@foo,@bar,@wizz

@pylapp
Copy link
Author

pylapp commented Mar 18, 2024

I should try it soon.

@BONDSK01
Copy link

BONDSK01 commented Jun 7, 2024

Anyone find a solution to this. I can't seem to get the GITLEAKS_NOTIFY_USER_LIST functionality to work either.

@BONDSK01
Copy link

I found a solution to this this. It isn't super clear but you need to create a single string like.

GITLEAKS_NOTIFY_USER_LIST: '@foo, @bar, @Wizz'

@tim-chaffin
Copy link

Nice find 😎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants