mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-17 13:45:54 +08:00
build: harden unit-test.yml permissions
Signed-off-by: Alex <aleksandrosansan@gmail.com>
This commit is contained in:
parent
1376d17d6c
commit
6213c95bbc
8
.github/workflows/unit-test.yml
vendored
8
.github/workflows/unit-test.yml
vendored
@ -60,6 +60,9 @@ env:
|
|||||||
CONAN_LOGGING_LEVEL: info
|
CONAN_LOGGING_LEVEL: info
|
||||||
CONAN_NON_INTERACTIVE: 1
|
CONAN_NON_INTERACTIVE: 1
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
conan-recipe-version:
|
conan-recipe-version:
|
||||||
uses: ultimaker/cura/.github/workflows/conan-recipe-version.yml@main
|
uses: ultimaker/cura/.github/workflows/conan-recipe-version.yml@main
|
||||||
@ -144,6 +147,11 @@ jobs:
|
|||||||
path: "tests/**/*.xml"
|
path: "tests/**/*.xml"
|
||||||
|
|
||||||
publish-test-results:
|
publish-test-results:
|
||||||
|
permissions:
|
||||||
|
contents: read # to fetch code (actions/checkout)
|
||||||
|
checks: write
|
||||||
|
pull-requests: write # to comment on pull request
|
||||||
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs: [ testing ]
|
needs: [ testing ]
|
||||||
if: success() || failure()
|
if: success() || failure()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user