mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 00:39:01 +08:00
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:
parent
1e69f4740b
commit
170c511568
@ -5,6 +5,9 @@ on:
|
||||
path:
|
||||
- "resources/**"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
printer-linter-diagnose:
|
||||
name: Printer linter PR diagnose
|
||||
|
3
.github/workflows/printer-linter-pr-post.yml
vendored
3
.github/workflows/printer-linter-pr-post.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user