mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-03-29 15:31:37 +00:00
Added permissions to GitHub Actions jobs
This commit is contained in:
parent
309d36897e
commit
5e8fce8907
5
.github/workflows/build-and-release.yml
vendored
5
.github/workflows/build-and-release.yml
vendored
@ -14,6 +14,8 @@ jobs:
|
|||||||
read_metadata:
|
read_metadata:
|
||||||
name: Read metadata
|
name: Read metadata
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
outputs:
|
outputs:
|
||||||
formatted_version: ${{ steps.format_metadata.outputs.formatted_version }}
|
formatted_version: ${{ steps.format_metadata.outputs.formatted_version }}
|
||||||
formatted_build_time: ${{ steps.format_metadata.outputs.formatted_build_time }}
|
formatted_build_time: ${{ steps.format_metadata.outputs.formatted_build_time }}
|
||||||
@ -80,6 +82,8 @@ jobs:
|
|||||||
build_main:
|
build_main:
|
||||||
name: Build app (${{ matrix.dotnet_runtime }})
|
name: Build app (${{ matrix.dotnet_runtime }})
|
||||||
needs: read_metadata
|
needs: read_metadata
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
@ -703,6 +707,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build_main, read_metadata]
|
needs: [build_main, read_metadata]
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
permissions: {}
|
||||||
steps:
|
steps:
|
||||||
- name: Create artifact directory
|
- name: Create artifact directory
|
||||||
run: mkdir -p $GITHUB_WORKSPACE/artifacts
|
run: mkdir -p $GITHUB_WORKSPACE/artifacts
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user