Skip to content

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

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

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

Conversation

@mikhailbahdashych-glia

Copy link
Copy Markdown
Contributor

Gitleaks secret scanning for this public repo

Part of the org-wide DevSec cleanup: public repos can't run the org-level Gitleaks Secret Scanning ruleset workflow (it lives in a private repo), so they carry their own copy — already proven on the 14 public production libraries (clean run + planted-secret detection on stats_plug).

  • Upstream gitleaks/gitleaks-action v3.0.0 SHA-pinned, actions/checkout v6 SHA-pinned, minimal explicit permissions.
  • Uses the org secret GITLEAKS_LICENSE_PUBLIC (access already granted to this repo).
  • Scanning only — this adds no required check; gating would be a separate ghom change if the owning team wants it.
  • Fork-PR caveat: secrets aren't available to fork-triggered runs, so the check fails on external contributors' PRs (accepted trade-off; maintainers can re-push the branch).

This PR runs the workflow itself — the gitleaks-scan check should appear below. If it doesn't, this repo has Actions disabled or a restrictive allowed-actions list (common on forks) and needs a repo-settings fix first.

Public repos cannot run the org-level gitleaks ruleset workflow (it
lives in a private repo, and GitHub refuses to require a workflow from
a less visible repository), so public repos carry this copy instead,
using the upstream gitleaks/gitleaks-action v3 (SHA-pinned) with the
public-repo license key (org secret GITLEAKS_LICENSE_PUBLIC).

The gitleaks-scan job name matches the check context used org-wide.
This adds scanning only - no required-check change for this repo.

Secrets are not available to workflows triggered by pull requests from
forks, so the check fails on external contributors' PRs (accepted
trade-off; a maintainer can re-push the branch to run it licensed).

Part of the DevSec Jenkins cleanup; proven on the 14 public production
libraries (canaries: salemove/stats_plug#19 green run, #20 detection).
@mikhailbahdashych-glia
mikhailbahdashych-glia requested a review from a team as a code owner September 2, 2026 09:01
@mikhailbahdashych-glia
mikhailbahdashych-glia merged commit 2fa9032 into master Sep 2, 2026
8 checks passed
@mikhailbahdashych-glia
mikhailbahdashych-glia deleted the devsec-gitleaks-scan-workflow branch September 2, 2026 09:37
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