]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: set top-level permissions as well
authorEvgeny Vereshchagin <evvers@ya.ru>
Thu, 23 Jun 2022 14:09:36 +0000 (14:09 +0000)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 24 Jun 2022 11:08:30 +0000 (20:08 +0900)
It should turn on the "restricted" mode by default regardless of
whether the global setting is on or not. New jobs in this action
should have to overwrite it explicitly to gain write access in any
way.

It should also make the action consistent with the other actions
writing various stuff like 'labeler' and 'codeql'.

.github/workflows/issue_labeler.yml

index c4143037ce3b3981ddd24842135a4bdc0c4f4521..64774e67cc30ff88b2798fd31fd520c4bc899963 100644 (file)
@@ -5,6 +5,9 @@ on:
   issues:
     types: [ opened ]
 
+permissions:
+  contents: read
+
 jobs:
   label-component:
     runs-on: ubuntu-22.04