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:
parent
b3a1fb795a
commit
510afa460a
4
.github/workflows/codeql-analysis.yml
vendored
4
.github/workflows/codeql-analysis.yml
vendored
@ -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:
|
||||
|
3
.github/workflows/labeler.yml
vendored
3
.github/workflows/labeler.yml
vendored
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user