ci(check-whitespace): stop requiring a read/write token
commitcc00362125c7726551d2b6bda85e1a4b17d0bc81
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 14 Jul 2021 22:09:36 +0000 (14 22:09 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Jul 2021 22:37:59 +0000 (14 15:37 -0700)
tree8e466611495fa51d0415bd6ecf4555f10c656cbb
parentebf3c04b262aa27fbb97f8a0156c2347fecafafb
ci(check-whitespace): stop requiring a read/write token

As part of some recent security tightening, GitHub introduced the
ability to configure GitHub workflows to be run with a read-only token.
This is much more secure, in particular when working in a public
repository: While the regular read/write token might be restricted to
writing to the current branch, it is not necessarily restricted to
access only the current Pull Request.

However, the `check-whitespace` workflow threw a wrench into this plan:
it _requires_ write access (because it wants to add a PR comment in case
of a whitespace issue).

Let's just skip that PR comment. The user can always click through to
the actual error, even if it is slightly less convenient.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.github/workflows/check-whitespace.yml