Skip to content

Fix safe pull-request linting - #167

Merged
patrickvorgers merged 1 commit into
mainfrom
codex/safe-pull-request-lint
Nov 20, 2026
Merged

patrickvorgers merged 1 commit into
mainfrom
codex/safe-pull-request-lint

Conversation

@patrickvorgers

@patrickvorgers patrickvorgers commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

The lint workflow checks out a pull request's source under pull_request_target. GitHub already refuses that checkout for fork contributions, and the default public-repository event policy will also block the trigger from 2 December 2026.

Run linting on pull_request instead, using the standard event checkout with read-only contents permission and without persisted checkout credentials. Remove the PR-only job condition so the existing push-to-main trigger runs instead of silently skipping. Preserve the existing linter version, full-codebase selection and exclusions. Update the contribution instructions to describe the actual CI route.

Validation: official actionlint 1.7.12 release checksum verified and workflow validation passed. A parsed YAML self-check verifies PR/push routing, main-branch targeting, read-only permission, default checkout, disabled credential persistence and unchanged lint scope. GitHub pull_request run 44747464850 passed, including checkout and Super-Linter; the transitional old pull_request_target run 44747465014 also passed. No import logic or data files changed.

@patrickvorgers
patrickvorgers marked this pull request as ready for review November 20, 2026 14:00
@patrickvorgers
patrickvorgers merged commit e229cbf into main Nov 20, 2026
4 checks passed
@patrickvorgers
patrickvorgers deleted the codex/safe-pull-request-lint branch November 20, 2026 14:18
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