Skip to content

ci: use pull_request instead of pull_request_target for CodeQL - #185

Merged
bigboxer23 merged 2 commits into
mainfrom
ci/pull-request-trigger
Nov 29, 2026
Merged

bigboxer23 merged 2 commits into
mainfrom
ci/pull-request-trigger

Conversation

@bigboxer23

Copy link
Copy Markdown
Owner

GitHub will block pull_request_target on public repos by default starting December 2, 2026.

  • codeql.yml now triggers on pull_request, plus push to main so code scanning has a default-branch baseline.
  • Removed the checkout ref: override, since pull_request already checks out the PR.
  • Dependabot PRs read GH_PAT_FOR_ACTIONS_TOKEN from Dependabot secrets, which is already set.

…uest_target

GitHub blocks pull_request_target on public repos by default starting
December 2, 2026. Same-repo PRs get secrets on pull_request, and
Dependabot PRs use the Dependabot secret already set on this repo. The
checkout ref override is no longer needed, and the push trigger gives
code scanning a default-branch analysis to compare PR results against.
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

actions/setup-java no longer supports the adopt distribution, so CodeQL
failed at JDK setup (including the weekly runs on main) and package
publishing would fail the same way.
@bigboxer23
bigboxer23 merged commit c865286 into main Nov 29, 2026
3 of 4 checks passed
@bigboxer23
bigboxer23 deleted the ci/pull-request-trigger branch November 29, 2026 20:59
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.

2 participants