From 090ddfe54246088b9f2282a885249f39a5e02f7f Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Sun, 8 Mar 2026 17:27:41 -0700 Subject: [PATCH] chore: update goreleaser config and release workflow - Pin actions/checkout to v4 instead of @master for supply-chain safety - Rename deprecated `builds` to `ids` in archive sections - Rename deprecated `format` to `formats` (list) in format_overrides - Update Snapcraft base from core20 (EOL) to core24 - Fix comment URL to HTTPS Co-Authored-By: Claude Opus 4.6 --- .github/workflows/release.yml | 2 +- .goreleaser.yml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 99d6714..da222e9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@master + uses: actions/checkout@v4 - run: git fetch --tags - name: Setup Go uses: actions/setup-go@v6 diff --git a/.goreleaser.yml b/.goreleaser.yml index b7d3304..521a342 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -15,7 +15,7 @@ # limitations under the License. # This is an example goreleaser.yaml file with some sane defaults. -# Make sure to check the documentation at http://goreleaser.com +# Make sure to check the documentation at https://goreleaser.com version: 2 before: @@ -69,11 +69,11 @@ archives: {{- else -}}v{{- . -}} {{- end -}} {{- end -}} - builds: + ids: - kubectx format_overrides: - goos: windows - format: zip + formats: [zip] files: ["LICENSE"] - id: kubens-archive name_template: |- @@ -89,11 +89,11 @@ archives: {{- else -}}v{{- . -}} {{- end -}} {{- end -}} - builds: + ids: - kubens format_overrides: - goos: windows - format: zip + formats: [zip] files: ["LICENSE"] checksum: name_template: "checksums.txt" @@ -111,7 +111,7 @@ snapcrafts: kubens is a tool to switch between Kubernetes namespaces (and configure them for kubectl) easily. grade: stable confinement: classic - base: core20 + base: core24 apps: kubectx: command: kubectx