Skip to content

Give the gitleaks job the token it needs on pull requests - #5

Merged
bezilla merged 2 commits into
mainfrom
gitleaks-pr-token
Sep 6, 2026
Merged

Give the gitleaks job the token it needs on pull requests#5
bezilla merged 2 commits into
mainfrom
gitleaks-pr-token

Conversation

@bezilla

@bezilla bezilla commented Sep 6, 2026

Copy link
Copy Markdown
Owner

The gitleaks job exits before scanning on pull_request events without GITHUB_TOKEN:

🛑 GITHUB_TOKEN is now required to scan pull requests.

It is not needed on push, so the job was green on main and red on every pull request. Since gitleaks is a required status check, that combination blocked all three pull requests this repository has had — including #2, which would have upgraded this same action.

This PR is also the first real run of the job on a pull_request event, so its result is the verification.

The action exits before scanning a pull_request event without
GITHUB_TOKEN, so the job was green on push and red on every pull
request. Being a required check, it blocked all three this repository
has had -- among them the bump of this same action.
Both are deliberate and neither was written down, which is how a
reduction starts reading as an oversight.

A vendor name in the body of a message passes: the allowlist reads the
trailer block and nothing else. That is the trade. Catching attribution
by key works against any tool, including one that ships tomorrow, where
a name list only ever catches what someone already thought to write
down.

Nothing scans the working tree either. The hand-written hooks under
.git/hooks/ that used to are inert wherever they survive, because
core.hooksPath makes git ignore that directory. They are not coming
back: the same scan matched nothing across the full history of every
repository here, and it walked build artefacts, so a full validation run
could leave a clean tree unpushable.
@bezilla
bezilla merged commit 0c7dbd7 into main Sep 6, 2026
6 checks passed
@bezilla
bezilla deleted the gitleaks-pr-token branch September 6, 2026 16:26
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.

1 participant