From 8b4d7e5c2f9e13b0c438963438e874edb5517da8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr?= Date: Tue, 6 Feb 2024 16:19:39 +0100 Subject: [PATCH 1/2] Fix Actions permissions (#575) --- .github/workflows/create-prerelase.yml | 3 +++ .github/workflows/create-release.yml | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/create-prerelase.yml b/.github/workflows/create-prerelase.yml index ce37d26c..c5a43fbc 100644 --- a/.github/workflows/create-prerelase.yml +++ b/.github/workflows/create-prerelase.yml @@ -16,6 +16,9 @@ jobs: name: Create prerelease if: "!contains(github.event.head_commit.message, '[no release]')" runs-on: windows-2019 + permissions: + # needed to create a release + contents: write steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 63432c70..ce330a8d 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -17,6 +17,9 @@ jobs: name: Bump version if: "!contains(github.event.head_commit.message, '[no release]')" runs-on: windows-2019 + permissions: + # needed to create a release + contents: write outputs: previous_tag: ${{ steps.bump.outputs.previous_tag }} new_tag: ${{ steps.bump.outputs.new_tag }} @@ -52,6 +55,9 @@ jobs: name: Create release if: "!contains(github.event.head_commit.message, '[no release]')" runs-on: self-hosted + permissions: + # needed to create a release + contents: write needs: new-version steps: - uses: actions/checkout@v3 From 8daa497439150164d7565f6448a02b731dab36f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr?= Date: Tue, 6 Feb 2024 16:32:06 +0100 Subject: [PATCH 2/2] Update 2_CreateParentDisks.ps1 --- Scripts/2_CreateParentDisks.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/2_CreateParentDisks.ps1 b/Scripts/2_CreateParentDisks.ps1 index 51fd5b4f..40e3adde 100644 --- a/Scripts/2_CreateParentDisks.ps1 +++ b/Scripts/2_CreateParentDisks.ps1 @@ -16,7 +16,7 @@ If (-not $isAdmin) { . $PSScriptRoot\0_Shared.ps1 # [!build-include-inline] #Create Unattend for VHD - Function CreateUnattendFileVHD{ + Function CreateUnattendFileVHD { param ( [parameter(Mandatory=$true)] [string] @@ -1239,4 +1239,4 @@ If (!$LabConfig.AutoClosePSWindows) { Read-Host | Out-Null } -#endregion \ No newline at end of file +#endregion