From f8ba541c25b1fe7580ac5bd1d8e1f0e0aee99865 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Mar 2026 19:47:12 +0000 Subject: [PATCH 1/3] Initial plan From 6b08d789d5fb49bc13c12e9c5ecb0ad310f0cd7b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Mar 2026 19:53:50 +0000 Subject: [PATCH 2/3] Fix plugin.json version field to match release version via goreleaser hook Co-authored-by: intel352 <77607+intel352@users.noreply.github.com> --- .goreleaser.yml | 4 ++++ plugin.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 91c3d86..dc1d1f0 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,5 +1,9 @@ version: 2 +before: + hooks: + - "sed -i.bak 's/\"version\": \".*\"/\"version\": \"{{ .Version }}\"/' plugin.json && rm -f plugin.json.bak" + builds: - main: ./cmd/workflow-plugin-authz binary: workflow-plugin-authz diff --git a/plugin.json b/plugin.json index bbc4481..9e66602 100644 --- a/plugin.json +++ b/plugin.json @@ -1,6 +1,6 @@ { "name": "workflow-plugin-authz", - "version": "1.0.0", + "version": "0.0.0-dev", "description": "RBAC authorization plugin using Casbin", "author": "GoCodeAlone", "license": "MIT", From 561983341193e119d58541c5032d1328e70dbb9b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Mar 2026 21:44:28 +0000 Subject: [PATCH 3/3] Restore plugin.json after goreleaser run using after.hooks Co-authored-by: intel352 <77607+intel352@users.noreply.github.com> --- .goreleaser.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index dc1d1f0..273a4ee 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -2,8 +2,13 @@ version: 2 before: hooks: + - "cp plugin.json plugin.json.orig" - "sed -i.bak 's/\"version\": \".*\"/\"version\": \"{{ .Version }}\"/' plugin.json && rm -f plugin.json.bak" +after: + hooks: + - "mv plugin.json.orig plugin.json" + builds: - main: ./cmd/workflow-plugin-authz binary: workflow-plugin-authz