Skip to content

Add gitleaks-scan workflow (public-repo secret scanning) - #6

Merged
mikhailbahdashych-glia merged 1 commit into
masterfrom
devsec-gitleaks-scan-workflow
Sep 2, 2026
Merged

Add gitleaks-scan workflow (public-repo secret scanning)#6
mikhailbahdashych-glia merged 1 commit into
masterfrom
devsec-gitleaks-scan-workflow

Conversation

@mikhailbahdashych-glia

@mikhailbahdashych-glia mikhailbahdashych-glia commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Replaces the Jenkins leak-scan with gitleaks-scan on this public repo

Part of the org-wide DevSec Jenkins cleanup — canary proven on stats_plug (clean run: salemove/stats_plug#19; planted-secret detection: salemove/stats_plug#20).

  • Public repos can't run the org-level Gitleaks Secret Scanning ruleset workflow (its file lives in a private repo), so this repo carries its own copy.
  • Upstream gitleaks/gitleaks-action v3.0.0, SHA-pinned; actions/checkout v6 SHA-pinned; explicit minimal permissions; org secret GITLEAKS_LICENSE_PUBLIC (already scoped to this repo).
  • The job name gitleaks-scan deliberately matches the required-check context private repos already use — after all 14 public repos carry this workflow, ghom swaps the required check from devsec/jenkins/gitleaks/leak-scan to gitleaks-scan and the Jenkins scan retires.
  • No .deployignore exists in this repo (library class, no deploy-trigger mechanism) — checked, nothing to update.
  • Known, accepted trade-off: PRs from forks don't receive secrets, so the check fails there; a maintainer re-pushing the branch runs it licensed.

This PR itself runs the workflow — the gitleaks-scan check below should appear and pass.

Public repos cannot run the org-level gitleaks ruleset workflow (it
lives in a private repo), so this repo carries its own copy using the
upstream gitleaks/gitleaks-action v3 (SHA-pinned) with the public-repo
license key. The job name gitleaks-scan matches the required check
context used org-wide, replacing devsec/jenkins/gitleaks/leak-scan.

Part of the DevSec Jenkins cleanup; canary proven on stats_plug (#19,
detection test #20).
@mikhailbahdashych-glia
mikhailbahdashych-glia requested a review from a team as a code owner September 1, 2026 14:48
@mikhailbahdashych-glia
mikhailbahdashych-glia requested review from KristinaNa and removed request for a team September 1, 2026 14:48
@mikhailbahdashych-glia
mikhailbahdashych-glia merged commit c45197b into master Sep 2, 2026
7 checks passed
@mikhailbahdashych-glia
mikhailbahdashych-glia deleted the devsec-gitleaks-scan-workflow branch September 2, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants