From cbb5ba4a25f35da607f7d2751474c6a9fa4d1acd Mon Sep 17 00:00:00 2001 From: Matthias Fleschuetz <13959569+blindzero@users.noreply.github.com> Date: Sat, 10 Jan 2026 18:02:06 +0100 Subject: [PATCH 1/9] ci: secure release build with workflows run on main --- .github/workflows/release.yml | 55 ++++++++++++++++++++++++++--------- 1 file changed, 41 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4318da64..5f8e4080 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,7 @@ on: permissions: contents: write + actions: read jobs: release: @@ -36,11 +37,9 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@v4 with: fetch-depth: 0 - # Always checkout the workflow ref (branch/tag selected in the UI or the pushed tag ref). - # Never treat the "tag" input as a git ref. ref: ${{ github.ref }} - name: Show PowerShell version @@ -71,23 +70,52 @@ jobs: shell: pwsh run: | $tag = '${{ steps.tag.outputs.value }}' - # Stable tags: vMAJOR.MINOR.PATCH (e.g. v0.7.0) $isStable = $tag -match '^v\d+\.\d+\.\d+$' - # Pre-release tags: vMAJOR.MINOR.PATCH-