From 6cb5b1e5df6882c709ddb5b0e139fa790a964daa Mon Sep 17 00:00:00 2001 From: Nico Braun Date: Sun, 14 Apr 2024 20:54:51 +0200 Subject: [PATCH] fix(decoder): ensure tag in harbor decoder Signed-off-by: Nico Braun --- plugin/builtin/starlark/decoder.harbor@v1.star | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/builtin/starlark/decoder.harbor@v1.star b/plugin/builtin/starlark/decoder.harbor@v1.star index 4585529..e0b3fdc 100644 --- a/plugin/builtin/starlark/decoder.harbor@v1.star +++ b/plugin/builtin/starlark/decoder.harbor@v1.star @@ -7,6 +7,8 @@ def main(input): output = [] for resource in event["resources"]: - output.append(resource["resource_url"]) + parts = resource["resource_url"].split("@") + name = parts.split(":")[0] + output.append(name + ":" + resource["tag"] + "@" + resource["digest"]) return output