mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
fix GITHUB_TOKEN permissions in workflows (#11392)
This pull request updates GitHub Actions workflow files to explicitly set permissions for certain actions. (fixing the permissions issues) **Workflow permissions updates:** * Added explicit `issues: write` permission to the `assign.yml` workflow to ensure it can modify issues as needed. * Set `contents: write`, `actions: write`, and `checks: write` permissions in the `build_all.yml` workflow to allow the workflow to interact with repository contents, manage actions, and update checks.
This commit is contained in:
3
.github/workflows/assign.yml
vendored
3
.github/workflows/assign.yml
vendored
@@ -7,6 +7,9 @@ on:
|
|||||||
types: [created]
|
types: [created]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
assign:
|
assign:
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
6
.github/workflows/build_all.yml
vendored
6
.github/workflows/build_all.yml
vendored
@@ -46,7 +46,10 @@ on:
|
|||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.ref }}
|
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
checks: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_linux:
|
build_linux:
|
||||||
@@ -183,3 +186,4 @@ jobs:
|
|||||||
asset_name: OrcaSlicer-Linux-flatpak_nightly_${{ matrix.variant.arch }}.flatpak
|
asset_name: OrcaSlicer-Linux-flatpak_nightly_${{ matrix.variant.arch }}.flatpak
|
||||||
asset_content_type: application/octet-stream
|
asset_content_type: application/octet-stream
|
||||||
max_releases: 1 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted
|
max_releases: 1 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted
|
||||||
|
|
||||||
|
|||||||
5
.github/workflows/build_check_cache.yml
vendored
5
.github/workflows/build_check_cache.yml
vendored
@@ -15,7 +15,10 @@ on:
|
|||||||
force-build:
|
force-build:
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
actions: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check_cache: # determines if there is a cache and outputs variables used in caching process
|
check_cache: # determines if there is a cache and outputs variables used in caching process
|
||||||
name: Check Cache
|
name: Check Cache
|
||||||
|
|||||||
3
.github/workflows/build_deps.yml
vendored
3
.github/workflows/build_deps.yml
vendored
@@ -23,6 +23,9 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
actions: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_deps:
|
build_deps:
|
||||||
name: Build Deps
|
name: Build Deps
|
||||||
|
|||||||
Reference in New Issue
Block a user