ci(gitleaks): drop the local patch, track upstream v3.0.0 unmodified #28
No reviewers
Labels
No labels
dependencies
major
security-pin
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
trails-cool/trails!28
Loading…
Reference in a new issue
No description provided.
Delete branch "ci/gitleaks-track-upstream-v3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Answers the question directly: we still need the vendored repo, but we no longer need it to be a fork.
uses:has to resolve somewhere that isn't GitHub — pointing it back atgitleaks/gitleaks-actionwould undo #27. What changes is the repo's character: fork-carrying-a-patch → plain mirror of an upstream tag.The patch was dead weight
The old pin
4cbc857bcarried exactly two local commits addingmerge_groupevent support. That is a GitHub merge-queue feature, Forgejo has no merge queue (#25), andci.ymlhas never had amerge_grouptrigger. With it gone there is nothing local to maintain, and updating becomes "push a newer upstream tag, bump the SHA".Now pinned to upstream v3.0.0 (
e0c47f4f), unmodified.Verified on the vendored remote before switching
e0c47f4fpresentdist/index.jsat that SHAaction.ymlat that SHAusing: "node24",main: dist/index.jsmerge_groupoccurrencesGITLEAKS_ENABLE_UPLOAD_ARTIFACTThat last one was worth checking rather than assuming: if the env var had been something our fork added, dropping the patch would have silently re-enabled the SARIF artifact upload, which throws
GHESNotSupportedErroragainst Forgejo and would fail the job on a clean scan. It turns out to be an upstream feature, so the workaround survives.The one real risk
v3.0.0 migrates the action runtime node20 → node24:
If the runner cannot provide node24, the step fails to start. I have not asserted that it can — CI is the test, and
CI / Security Scanon this PR is the job that resolves and executes the action. The fallback is documented inline: upstreambf2dc8e5, the pre-v3 commit our fork branched from, which is node20 and also patch-free. That would drop the patch without taking the runtime jump, at the cost of staying ~a year behind upstream (and missingchore: supply-chain hardening).If Security Scan fails here, the fix is a one-line SHA change to that fallback, not a revert.
Unchanged, still documented next to the step
The action still downloads the gitleaks binary from
github.com/zricethezav/gitleaks/releasesevery run, andactions/*still resolve viaDEFAULT_ACTIONS_URL=github. This PR is about the fork, not those — CI is not GitHub-free and the inline comment still says so.