Skip to content

Add pull_request trigger to CodeQL workflow#90

Merged
Chris-Wolfgang merged 1 commit into
mainfrom
chore/add-pull-request-trigger-to-codeql
Apr 27, 2026
Merged

Add pull_request trigger to CodeQL workflow#90
Chris-Wolfgang merged 1 commit into
mainfrom
chore/add-pull-request-trigger-to-codeql

Conversation

@Chris-Wolfgang
Copy link
Copy Markdown
Owner

Summary

Adds the pull_request trigger to .github/workflows/codeql.yaml, matching the canonical repo-template.

This was missing in Try-Pattern only (audit confirmed all other repos had it). As a result, the now-required Security Scan (CodeQL) (csharp) status check never ran on PRs and blocked all merges (e.g. #88, #89).

⚠️ Self-blocking issue

Because this PR is itself a PR and the workflow file change only takes effect after merge, this PR will also hit the same blocking required-check problem.

To merge: temporarily remove Security Scan (CodeQL) (csharp) from the required checks in the Protect main branch ruleset, merge this PR, then re-add it. Once merged, future PRs will run CodeQL automatically and #88 / #89 will unblock.

Test plan

  • After merge, open a fresh PR and confirm Security Scan (CodeQL) (csharp) reports as a status check

Brings Try-Pattern's codeql.yaml in line with the canonical repo-template.
Without this trigger, the CodeQL job did not run on pull requests, leaving
the now-required 'Security Scan (CodeQL) (csharp)' status check perpetually
expected and blocking all PR merges.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Chris-Wolfgang Chris-Wolfgang merged commit d82e8cf into main Apr 27, 2026
6 checks passed
@Chris-Wolfgang Chris-Wolfgang deleted the chore/add-pull-request-trigger-to-codeql branch April 27, 2026 22:50
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