gitleaks/gitleaks-action

Infrastructure & DevOps

Scans commits for secrets with Gitleaks.

Latest v3.0.0 · by GitleaksWritten in JavaScriptWebsitegitleaks/gitleaks-actionRSS

Changelog

What changed from 2 to 3

v3.0.0

Latest
Changed 5
  • Migrated the action runtime from Node 20 to Node 24 in action.yml
  • Updated @actions/core dependency from 1.10.0 to 1.11.1
  • Rebuilt dist/ output for the v3 release
  • Updated example workflows to use actions/checkout@v6 and gitleaks-action@v3
  • Updated README with a v3 migration guide

From gitleaks/gitleaks-action

What's changed

gitleaks-action v3 migrates the runtime from Node 20 to Node 24. No changes to inputs, outputs, or behavior. Update your workflow from gitleaks/gitleaks-action@v2 to gitleaks/gitleaks-action@v3.

Migration
# Before
- uses: gitleaks/gitleaks-action@v2

# After
- uses: gitleaks/gitleaks-action@v3
Why

GitHub is deprecating the Node 20 runtime for Actions:

  • June 2, 2026: GitHub flips the runner default to Node 24. Workflows using gitleaks-action@v2 (Node 20) will still run, but only if ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true is set as an environment variable.
  • September 16, 2026: Node 20 is removed from GitHub-hosted runners entirely. gitleaks-action@v2 stops working regardless of any opt-out flag.
Changes
  • action.yml: runtime node20 → node24
  • @actions/core: 1.10.0 → 1.11.1
  • dist/ rebuilt
  • Example workflows updated to actions/checkout@v6 and gitleaks-action@v3
  • README updated with v3 migration guide
Self-hosted runners

If you use self-hosted runners, ensure your runner version is >= v2.327.1 (required for Node 24 support).

View originalPermalink
How v3.0.0 went

v2.3.9

Changed 1
  • Bumped the cache version used by the action
View originalRead the notes
How v2.3.9 went

v2.3.8

Added 1
  • Add environment variable to override the gitleaks baseRef
Changed 2
  • Bump the default gitleaks version
  • Update the license filename
Security 1
  • Fix vulnerabilities
View originalRead the notes
How v2.3.8 went

v2.3.6

Changed 1
  • Use DefaultArtifactClient from the @actions/artifact package
View originalRead the notes
How v2.3.6 went

v2.3.5

Changed 1
  • Bumped the artifact dependency to a newer version
View originalRead the notes
How v2.3.5 went

v2.3.3

Added 1
  • Document the GITLEAKS_VERSION environment variable
Changed 2
  • Bump the bundled gitleaks version
  • Upgrade the action runtime from node16 to node20
View originalRead the notes
How v2.3.3 went

v2.3.2

Changed 2
  • Updated build instructions
  • Updated build instructions
Fixed 2
  • Report artifact is now uploaded even if no leaks are detected
  • Fixed undefined repo
View originalRead the notes
How v2.3.2 went

v2.3.1

Fixed 1
  • Resolved the warning stating that the set-output command is deprecated by upgrading the @actions/core dependency
View originalRead the notes
How v2.3.1 went
View all

Discussion

If you publish gitleaks/gitleaks-action, you can claim this product by proving you administer its repository.