From 2b961d00c21358b5fc152c249a123ca439bdfc96 Mon Sep 17 00:00:00 2001 From: The0Mikkel Date: Mon, 3 Aug 2026 00:25:24 +0200 Subject: [PATCH 1/3] fix(release): remove persist-credentials option from checkout action --- .github/workflows/release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dc23615..2a12ec3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,7 +56,6 @@ jobs: uses: actions/checkout@v7.0.0 with: fetch-depth: 0 - persist-credentials: false - name: "Check if develop is up to date with main" id: check_diff From 6ea5fe3b3ded24b32d191a5a7d1aec1765ff8ea9 Mon Sep 17 00:00:00 2001 From: The0Mikkel Date: Sun, 25 Oct 2026 18:06:32 +0100 Subject: [PATCH 2/3] feat(release): add support for Go runtime in release flow --- .github/workflows/release.yml | 12 ++++++++++++ README.md | 2 ++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2a12ec3..767d2fe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,6 +25,11 @@ on: required: false type: boolean default: false + INSTALL_GO: + description: "Whether to install Go in this workflow so later release workflow can run Go commands. Defaults to false." + required: false + type: boolean + default: false secrets: RELEASE_GH_TOKEN: description: "GitHub Token. Used to authenticate with GitHub at release step. This will overwrite the use of the default GitHub token." @@ -89,6 +94,13 @@ jobs: uses: actions/setup-node@v7.0.0 with: node-version: "lts/*" + + - name: Setup Go + if: inputs.INSTALL_GO + uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 + with: + go-version-file: go.mod + - name: Install dependencies run: npm install semantic-release@v25.0.0 @semantic-release/exec@v7.1.0 @semantic-release/commit-analyzer@v13.0.1 @semantic-release/git@v10.0.1 @semantic-release/github@v12.0.9 @semantic-release/release-notes-generator@v14.1.1 conventional-changelog-conventionalcommits@v9.3.1 ${{ inputs.plugins }} -D - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies diff --git a/README.md b/README.md index b531029..16cd35f 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,8 @@ When the workflow runs on a push to `develop`, it will fail if `main` is ahead o - `repository`: Allowed repository for workflow to run in. Example `ctfpilot/hello-world`. - `plugins`: Additional plugins to install. Example `@semantic-release/changelog @semantic-release/git` - `ENVIRONMENT`: The environment to deploy to. +- `INSTALL_UV`: Install `uv` in this workflow so later release workflow can run `uv` commands. Defaults to false. +- `INSTALL_GO`: Install `go` in this workflow so later release workflow can run `go` commands. Defaults to false. #### Secrets From bea65f1eb1418e6cbf357fa860e043e7b6ee2a64 Mon Sep 17 00:00:00 2001 From: Mikkel Albrechtsen Date: Fri, 20 Nov 2026 20:18:36 +0100 Subject: [PATCH 3/3] fix(release): disable credential persistence in checkout action Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 767d2fe..c5fe031 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,6 +61,7 @@ jobs: uses: actions/checkout@v7.0.0 with: fetch-depth: 0 + persist-credentials: false - name: "Check if develop is up to date with main" id: check_diff