Skip to content

Comments

Nojira add gitleaks check#47

Closed
dfelgar-ae wants to merge 3 commits intocodebrick-corp:mainfrom
audioeye:NOJIRA_add_gitleaks_check
Closed

Nojira add gitleaks check#47
dfelgar-ae wants to merge 3 commits intocodebrick-corp:mainfrom
audioeye:NOJIRA_add_gitleaks_check

Conversation

@dfelgar-ae
Copy link

Ticket:

PE-875

Description

We have various secrets/keys embedded in our sources. This GH workflow scans PR's for secrets to prevent any more from accumulating. We will handle existing ones as a next step.

When a PR contains a secret, this workflow fails and displays the offending code.

It uses this workflow in github-actions: https://github.com/audioeye/github-actions/blob/main/.github/workflows/gitleaks.yml.

How To Test:

The workflow itself has been tested as per below. The import of the workflow has not, as I'm not aware of any way to do so. Ideally the CI/CD on this PR will itself use the workflow and at least verify that it doesn't cause problems.

Passing PR: https://github.com/audioeye/cve_test/pull/39
Failing PR: https://github.com/audioeye/cve_test/pull/38

Failure output:

7:43PM WRN leaks found: 1
Finding: GITHUB_TOKEN=ghp_1234567890abcdef1234567890abcdef1234
Secret: ghp_1234567890abcdef1234567890abcdef1234
RuleID: github-pat
Entropy: 4.246439
File: src/keyleak.js
Line: 7
Commit: 94b7b660a826140bd1267588aa0c6d0759708479
Date: 2026-02-11T19:42:31Z
Fingerprint: 94b7b660a826140bd1267588aa0c6d0759708479:src/keyleak.js:github-pat:7
Link: https://github.com/audioeye/cve_test/blob/94b7b660a826140bd1267588aa0c6d0759708479/src/keyleak.js#L7

Breaking Changes:

None.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants