Reduce permissions on printer-linter GitHub actions

Previously they had no permission set, so by default all write access. We now specify only the required permissions for each of them.
This commit is contained in:
Erwan MATHIEU 2024-05-23 11:49:35 +02:00
parent 1e69f4740b
commit 170c511568
2 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,9 @@ on:
path:
- "resources/**"
permissions:
contents: read
jobs:
printer-linter-diagnose:
name: Printer linter PR diagnose

View File

@ -5,6 +5,9 @@ on:
workflows: ["printer-linter-pr-diagnose"]
types: [completed]
permissions:
issues: write
jobs:
clang-tidy-results:
# Trigger the job only if the previous (insecure) workflow completed successfully