1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-23 13:57:33 +03:00

ci: tighten codeql and labeler even more

by moving the read permissions to the top level and
granting additional permissions to the specific jobs.
It should help to prevent new jobs that could be added
there eventually from having write access to resources they
most likely would never need.
This commit is contained in:
Evgeny Vereshchagin 2021-11-14 09:41:42 +00:00
parent b3a1fb795a
commit 510afa460a
2 changed files with 5 additions and 2 deletions

View File

@ -11,6 +11,9 @@ on:
schedule:
- cron: '0 1 * * *'
permissions:
contents: read
jobs:
analyze:
name: Analyze
@ -20,7 +23,6 @@ jobs:
cancel-in-progress: true
permissions:
actions: read
contents: read
security-events: write
strategy:

View File

@ -9,11 +9,12 @@ on:
permissions:
contents: read
pull-requests: write
jobs:
triage:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/labeler@69da01b8e0929f147b8943611bee75ee4175a49e
with: