epam / epam/parso

Introduce pull request annotation for checkstyle errors and failed tests

Open
#87 0 comments 0 reactions 0 assignees View on GitHub
ci
Dominant language
Java
Stars
79
Forks
42
PR merge metrics
No merged PRs in 30d

Description

Leverage _workflow_run_ trigger in order to execute workflow that will annotate pull request with found checkstyle errors and failed tests without exposing secrets (as in case of _pull_request_target_ trigger and execution of build tool script commands on pull request code base).

This will be helpful for contributors who submit pull requests from forked repositories to get immediate feedback in case if something is wrong with their pull request rather than going to the _Actions_ tab and finding out at what stage and with what reason workflow is failed.

Actions that provide required annotation in case if they have _pull_request_ context and _write permissions_ are following:
- https://github.com/ScaCap/action-surefire-report
- https://github.com/jwgmeligmeyling/checkstyle-github-action

More information on security concerns and triggers specifics:
- https://securitylab.github.com/research/github-actions-preventing-pwn-requests
- https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request_target
- https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_run

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.