ci: mimic the "restricted" mode
authorEvgeny Vereshchagin <evvers@ya.ru>
Sat, 13 Nov 2021 22:34:04 +0000 (22:34 +0000)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Sun, 14 Nov 2021 10:41:06 +0000 (10:41 +0000)
commite7a966915dde2c6f25a5e7a06a4a637b04b89781
tree7f82043f1bde10262d0ddbec683410e58679d6fe
parent10b1c3cd24f5f95e6e72caebdd6896e2eaf8b853
ci: mimic the "restricted" mode

Judging by https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
it should be enough to grant the "read contents" permission to
most of our actions. The "read metadata" permission is set impliciclty
somewhere and can't be set via the "permissions" setting:
```
The workflow is not valid. .github/workflows/linter.yml (Line: 14, Col: 3): Unexpected value 'metadata'
```
.github/workflows/build_test.yml
.github/workflows/cifuzz.yml
.github/workflows/coverity.yml
.github/workflows/linter.yml
.github/workflows/mkosi.yml
.github/workflows/unit_tests.yml