Skip to content

Commit e26952f

Browse files
ci: delete duplicate CodeQL workflow + fix Gitleaks to use free CLI
Two fixes for the 5 failing PR checks: 1. Delete codeql.yml (removes 4 red checks). GitHub's default CodeQL setup (enabled in Security → Code scanning → Default setup) already runs the same 4-language analysis on every PR and passes. The workflow-file version was a duplicate with broken autobuild settings for c-cpp. With it gone, the default setup is the sole CodeQL runner — zero coverage lost. 2. Fix secret-scan.yml (removes 1 red check). gitleaks-action@v2 went commercial in 2023 and requires a paid license for GitHub organization accounts. Replaced with the gitleaks CLI directly (MIT-licensed, free, same scanning engine). Downloads gitleaks v8.21.2 binary and runs `gitleaks detect` against the full git history using the repo's .gitleaks.toml config. Same coverage, no license. Final workflow set: pr-build.yml, release.yml, secret-scan.yml (3 files). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5b6875a commit e26952f

2 files changed

Lines changed: 17 additions & 110 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 0 additions & 106 deletions
This file was deleted.

.github/workflows/secret-scan.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ name: Secret Scanning
77
# API keys, tokens, and internal URLs. Uses the project-level
88
# .gitleaks.toml for RunAnywhere-specific patterns on top of gitleaks'
99
# built-in detectors.
10+
#
11+
# Uses the gitleaks CLI directly (MIT-licensed, free for all) instead of
12+
# gitleaks-action@v2 which requires a paid license for organization
13+
# accounts.
1014
# =============================================================================
1115

1216
on:
@@ -28,8 +32,17 @@ jobs:
2832
with:
2933
fetch-depth: 0
3034

35+
- name: Install Gitleaks CLI
36+
run: |
37+
GITLEAKS_VERSION=8.21.2
38+
curl -sL "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" | tar xz gitleaks
39+
sudo mv gitleaks /usr/local/bin/
40+
gitleaks version
41+
3142
- name: Run Gitleaks
32-
uses: gitleaks/gitleaks-action@v2
33-
env:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
GITLEAKS_CONFIG: .gitleaks.toml
43+
run: |
44+
if [ -f .gitleaks.toml ]; then
45+
gitleaks detect --source . --config .gitleaks.toml --redact --verbose
46+
else
47+
gitleaks detect --source . --redact --verbose
48+
fi

0 commit comments

Comments
 (0)