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

feat(secu): git leaks integration #163

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/gitleaks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: gitleaks
on:
pull_request:
push:
workflow_dispatch:

jobs:
scan:
name: gitleaks
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0

- uses: gitleaks/gitleaks-action@83373cf2f8c4db6e24b41c1a9b086bb9619e9cd3 #v2.3.7

Check warning on line 16 in .github/workflows/gitleaks.yml

View workflow job for this annotation

GitHub Actions / yaml-lint

16:82 [comments] missing starting space in comment
#continue-on-error: true

Check warning on line 17 in .github/workflows/gitleaks.yml

View workflow job for this annotation

GitHub Actions / yaml-lint

17:10 [comments] missing starting space in comment
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}}
5 changes: 5 additions & 0 deletions centreon-awie/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

aws ecr get-login-password --region eu-tata-42 | docker login --username AWS --password-stdin 7646546534gts763.dkrcr.eu-tata-42.amazonaws.net

password="Abc94be5ccgsskkfd78df9ebd5bb6d7dbba"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id generic-api-key in commit 167bce0.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo 167bce0d5d240d747cdc3194a64424530716dd6c:centreon-awie/test.sh:generic-api-key:5 >> .gitleaksignore

Loading