Skip to content

ci: fail eslint job on lint errors - #58

Open
shimoncohen wants to merge 1 commit into
masterfrom
ci/enforce-lint
Open

shimoncohen wants to merge 1 commit into
masterfrom
ci/enforce-lint

Conversation

@shimoncohen

Copy link
Copy Markdown
Contributor

Summary

The Run eslint job passes regardless of lint errors:

  • wearerequired/lint-action defaults to continue_on_error: true, so errors don't fail the step.
  • It reports results as separate check runs, but the workflow lacks checks: write, so creating them fails with 403 (Resource not accessible by integration) and the failing ESLint check never appears.

Example: #52 at 9ad9fbf — log shows ESLint found 8 errors and 13 warnings (failure), job green.

Changes in .github/workflows/pull_request.yaml: add checks: write, set continue_on_error: false.

Impact

  • master has 0 lint errors (28 warnings, per chore(master): release 3.0.4 #56 CI), so this doesn't break current PRs; warnings still pass.
  • checks: write has no effect on fork PRs (read-only token there).

🤖 Generated with Claude Code

lint-action defaults to continue_on_error: true, and without checks: write
its ESLint check run is rejected with 403, so lint errors never surfaced.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@shimoncohen
shimoncohen marked this pull request as ready for review September 28, 2026 11:45
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