Fix setting branch protection failure in GHA
Fix setting branch protection failure in GHA

This is necessary to resolve the problem of GitHub treating the
`skipped` `check` job result as an acceptable outcome and merging
broken Dependabot PRs with auto-merge. For example:
https://github.com/aio-libs/aiohttp/pull/6330.

Inspired by:
https://github.com/pyca/cryptography/pull/6512#discussion_r757982569

cherrypy/cheroot