mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 10:09:02 +08:00
Merge pull request #13361 from sashashura/patch-1
GitHub Workflows security hardening
This commit is contained in:
commit
8e59503b35
10
.github/workflows/conan-package.yml
vendored
10
.github/workflows/conan-package.yml
vendored
@ -47,13 +47,20 @@ on:
|
|||||||
- '[1-9].[0-9].[0-9]+'
|
- '[1-9].[0-9].[0-9]+'
|
||||||
- '[1-9].[0-9][0-9].[0-9]+'
|
- '[1-9].[0-9][0-9].[0-9]+'
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
jobs:
|
jobs:
|
||||||
conan-recipe-version:
|
conan-recipe-version:
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
uses: ultimaker/cura/.github/workflows/conan-recipe-version.yml@main
|
uses: ultimaker/cura/.github/workflows/conan-recipe-version.yml@main
|
||||||
with:
|
with:
|
||||||
project_name: cura
|
project_name: cura
|
||||||
|
|
||||||
conan-package-export:
|
conan-package-export:
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
needs: [ conan-recipe-version ]
|
needs: [ conan-recipe-version ]
|
||||||
uses: ultimaker/cura/.github/workflows/conan-recipe-export.yml@main
|
uses: ultimaker/cura/.github/workflows/conan-recipe-export.yml@main
|
||||||
with:
|
with:
|
||||||
@ -65,6 +72,9 @@ jobs:
|
|||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
conan-package-create-linux:
|
conan-package-create-linux:
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
if: ${{ (github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'master' || needs.conan-recipe-version.outputs.is_release_branch == 'true')) || (github.event_name == 'workflow_dispatch' && inputs.create_binaries_linux) }}
|
if: ${{ (github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'master' || needs.conan-recipe-version.outputs.is_release_branch == 'true')) || (github.event_name == 'workflow_dispatch' && inputs.create_binaries_linux) }}
|
||||||
needs: [ conan-recipe-version, conan-package-export ]
|
needs: [ conan-recipe-version, conan-package-export ]
|
||||||
|
|
||||||
|
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