Skip to content

chore(ci): bump gitleaks/gitleaks-action from 2 to 3#120

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/github_actions/gitleaks/gitleaks-action-3
Open

chore(ci): bump gitleaks/gitleaks-action from 2 to 3#120
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/github_actions/gitleaks/gitleaks-action-3

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 2, 2026

Copy link
Copy Markdown
Contributor

Bumps gitleaks/gitleaks-action from 2 to 3.

Release notes

Sourced from gitleaks/gitleaks-action's releases.

v3.0.0

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 node20node24
  • @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).

v2.3.9

What's Changed

Full Changelog: gitleaks/gitleaks-action@v2.3.8...v2.3.9

v2.3.8

What's Changed

New Contributors

Full Changelog: gitleaks/gitleaks-action@v2.3.7...v2.3.8

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by CodeRabbit

  • Chores
    • Updated the security scanning workflow to use the latest version of the scanning tool.

Bumps [gitleaks/gitleaks-action](https://github.com/gitleaks/gitleaks-action) from 2 to 3.
- [Release notes](https://github.com/gitleaks/gitleaks-action/releases)
- [Commits](gitleaks/gitleaks-action@v2...v3)

---
updated-dependencies:
- dependency-name: gitleaks/gitleaks-action
  dependency-version: '3'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Jun 2, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: automerge-candidate, dependencies, github-actions. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@coderabbitai

coderabbitai Bot commented Jun 2, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The CI workflow security scanning step is upgraded to use Gitleaks GitHub Action v3 instead of v2, updating a single line in the workflow configuration.

Changes

CI Security Tooling

Layer / File(s) Summary
Gitleaks action version upgrade
.github/workflows/ci.yml
The security scanning workflow step updates the Gitleaks GitHub Action dependency from @v2 to @v3.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A version leap so small, yet mighty fine,
From v2 to v3, the secrets align,
Gitleaks now scans with upgraded might,
Our secrets stay hidden, away from sight!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: updating the gitleaks/gitleaks-action GitHub Action from version 2 to version 3, which is the exact modification shown in the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dependabot/github_actions/gitleaks/gitleaks-action-3

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown

PR size is within recommended limits

@sonarqubecloud

sonarqubecloud Bot commented Jun 2, 2026

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
.github/workflows/ci.yml (1)

278-278: ⚖️ Poor tradeoff

Confirm this bump is mirrored in l9-template.

This file is marked origin: l9-template (Lines 1-9). Editing the CI pipeline directly here risks drifting from the template source of truth; the version bump should also land upstream so the template and engine repos stay in sync.

As per coding guidelines: "Engine NEVER creates Dockerfile, docker-compose, CI pipeline, or Terraform modules. All exist in l9-template."

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/ci.yml at line 278, The CI action version bump to
gitleaks/gitleaks-action@v3 must be applied in the l9-template repo as well to
avoid drift; update the corresponding CI workflow in l9-template (the file
marked origin: l9-template) to use gitleaks/gitleaks-action@v3, open a PR
against l9-template with that change, and then ensure this repo's change is
either removed or accompanied by a reference to the upstream template PR so both
repos stay in sync.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/ci.yml:
- Line 278: Replace the floating action reference uses:
gitleaks/gitleaks-action@v3 with a pinned commit SHA: locate the uses entry for
gitleaks/gitleaks-action@v3 in the CI workflow and change it to the same pinning
style used for other actions (uses: gitleaks/gitleaks-action@<commit-sha>),
choosing a current stable commit SHA from the gitleaks/gitleaks-action repo;
also apply the same change in the workflow template source (origin: l9-template)
to keep the template and workflow in sync.

---

Nitpick comments:
In @.github/workflows/ci.yml:
- Line 278: The CI action version bump to gitleaks/gitleaks-action@v3 must be
applied in the l9-template repo as well to avoid drift; update the corresponding
CI workflow in l9-template (the file marked origin: l9-template) to use
gitleaks/gitleaks-action@v3, open a PR against l9-template with that change, and
then ensure this repo's change is either removed or accompanied by a reference
to the upstream template PR so both repos stay in sync.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: c82fcb92-4c65-406d-9f7d-fdb959c70640

📥 Commits

Reviewing files that changed from the base of the PR and between 35306fd and 372850b.

📒 Files selected for processing (1)
  • .github/workflows/ci.yml

Comment thread .github/workflows/ci.yml

- name: Run Gitleaks (Secret Detection)
uses: gitleaks/gitleaks-action@v2
uses: gitleaks/gitleaks-action@v3

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Resolve the v3 tag (and latest v3.x release) to a commit SHA
gh api repos/gitleaks/gitleaks-action/git/refs/tags/v3 --jq '{ref, sha: .object.sha, type: .object.type}'
gh api repos/gitleaks/gitleaks-action/releases --jq '.[] | select(.tag_name|startswith("v3")) | {tag_name, target_commitish}'

Repository: cryptoxdog/Cognitive.Engine.Graphs

Length of output: 216


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Show relevant context around the flagged line
sed -n '260,295p' .github/workflows/ci.yml | nl -ba

# Check for template/origin markers and confirm other third-party actions are pinned to SHAs
rg -n "L9_META|origin: l9-template|layer: \[ci\]" .github/workflows/ci.yml || true
rg -n "uses: " .github/workflows/ci.yml | head -n 80

Repository: cryptoxdog/Cognitive.Engine.Graphs

Length of output: 121


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Show relevant context around line ~278 without relying on `nl`
sed -n '265,290p' .github/workflows/ci.yml | cat -n

# Look for template/origin markers
rg -n "L9_META|origin: l9-template|layer: \\[ci\\]" .github/workflows/ci.yml || true

# List `uses:` occurrences to confirm SHA-pinning pattern (first 120 matches for brevity)
rg -n "uses:\s*" .github/workflows/ci.yml | head -n 120

Repository: cryptoxdog/Cognitive.Engine.Graphs

Length of output: 1985


Pin gitleaks/gitleaks-action@v3 to a commit SHA

  • .github/workflows/ci.yml (L278) uses the floating tag uses: gitleaks/gitleaks-action@v3 (zizmor unpinned-uses), while other third-party actions in the same workflow are pinned to commit SHAs.
  • The workflow is marked origin: l9-template; apply this change in the template source to avoid drift.
🔒 Proposed fix
-        uses: gitleaks/gitleaks-action@v3
+        uses: gitleaks/gitleaks-action@e0c47f4f8be36e29cdc102c57e68cb5cbf0e8d1e # v3
🧰 Tools
🪛 zizmor (1.25.2)

[error] 278-278: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)

(unpinned-uses)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/ci.yml at line 278, Replace the floating action reference
uses: gitleaks/gitleaks-action@v3 with a pinned commit SHA: locate the uses
entry for gitleaks/gitleaks-action@v3 in the CI workflow and change it to the
same pinning style used for other actions (uses:
gitleaks/gitleaks-action@<commit-sha>), choosing a current stable commit SHA
from the gitleaks/gitleaks-action repo; also apply the same change in the
workflow template source (origin: l9-template) to keep the template and workflow
in sync.

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.

0 participants