Skip to content

ci(secu): resolve the gitleaks release without python - #78

Closed
paloth wants to merge 1 commit into
mainfrom
ci/gitleaks-feed-without-python
Closed

paloth wants to merge 1 commit into
mainfrom
ci/gitleaks-feed-without-python

Conversation

@paloth

@paloth paloth commented Oct 27, 2026

Copy link
Copy Markdown

Description

What are your needs or what are you planning to do in this PR?

On the quanta-security runners, "Install Gitleaks" parses the gitleaks releases feed with python3. That pool runs runners/base, which is being reduced to the bare actions runner plus gh and wget in centreon/centreon-images#400. Without Python, the step would not fail but would fall back to GITLEAKS_FALLBACK_VERSION with a gitleaks-version-fallback warning on every run.

The feed is now parsed with awk, same rules: only vX.Y.Z tags, published at least 4 days before the run. actions/setup-python is not used on purpose: this job downloads no action at "Set up job" (see the checkout step), to avoid the codeload.github.com rate limits.

Tested:

  • Same result as the previous Python parser on the live feed for several cutoff dates; a pre-release tag and a release newer than the cutoff are excluded.
  • The extracted step runs on the new minimal base image (no Python): resolves 8.30.1 and installs it, checksum verified.
  • actionlint passes.

dependency-analysis.yml (also on quanta-security) uses wget, which stays in the new base image: no change needed.

🤖 Generated with Claude Code

On the quanta-security runners the "Install Gitleaks" step parses the
gitleaks releases feed with python3. That runner image is being reduced
to the bare actions runner plus gh and wget
(centreon/centreon-images#400): without Python the step would fall
back to the pinned gitleaks version with a warning on every run.

The feed is now parsed with awk, with the same rules (vX.Y.Z tags only,
published at least 4 days before the run). actions/setup-python is not
used on purpose: the job downloads no action at "Set up job", to avoid
the codeload.github.com rate limits of the shared self-hosted egress.

Assisted-by: Claude Code (claude-opus-5-5)
@paloth

paloth commented Oct 27, 2026

Copy link
Copy Markdown
Author

Closing: Python 3.14 now ships in the runners/base image (centreon/centreon-images#400), so the quanta-security runners keep python3 and the existing feed parsing works as is.

@paloth paloth closed this Oct 27, 2026
@paloth
paloth deleted the ci/gitleaks-feed-without-python branch October 27, 2026 15:25
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