Skip to content

do not merge 2 - #5711

Closed
sc979 wants to merge 3 commits into
stagingfrom
SECU-gitleaks-custom-flow
Closed

sc979 wants to merge 3 commits into
stagingfrom
SECU-gitleaks-custom-flow

Conversation

@sc979

@sc979 sc979 commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Description

This PR switches the secret scan from gitleaks-analysis.yml@main (native gitleaks-action) to
gitleaks-analysis.yml@SECU-gitleaks-custom, the custom flow under review in
centreon/security-tools#64. The custom flow:

  • scans every non-merge commit the PR brings (base..head). The native action reads only the
    first 30 PR commits from the API, so on this repository a PR with 145 commits had only 27 of
    them scanned;
  • re-fetches and retries when the event's commits are missing from the clone (the
    "invalid revision range" failures);
  • fails closed on gitleaks errors.

On a real runner (#5710, 5 runs), the install and scan steps take 1.6–2.1 s in total. The
native action's scan step takes 3–4 s on this repository.

Note: SECU-gitleaks-custom is a feature branch. Switch back to @main once
centreon/security-tools#64 is merged and before that branch is deleted.

Target version (i.e. version that this PR changes)

  • 24.10.x
  • 25.10.x
  • 26.10.x
  • Cloud
  • Monitoring Connectors
  • Experience Monitoring
  • Log Management

🤖 Generated with Claude Code

sc979 and others added 3 commits October 13, 2026 15:44
Switch the secret scan to the custom gitleaks flow of
centreon/security-tools#64 (SECU-gitleaks-custom branch), which scans
every commit of the PR (the native gitleaks-action stops at 30) and
resolves the commit range defensively.

Assisted-by: Claude Code (claude-opus-5-5)
@sc979 sc979 changed the title ci(secu): run secret scan from the custom gitleaks flow do not merge 2 Oct 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor
PR Previews
🚀 Deployed preview to https://docs-preview-int.centreon.com/previews/pr-5711/staging/
at Wed, 14 Oct 2026 12:46:24 GMT

NOTE: Previews are deleted after 30 days of inactivity

@sc979 sc979 closed this Oct 14, 2026
@sc979
sc979 deleted the SECU-gitleaks-custom-flow branch October 14, 2026 12:52
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

Successfully merging this pull request may close these issues.

1 participant