From 1396c4e251a2bf9eb8c8c22bd4bc25f847f38775 Mon Sep 17 00:00:00 2001 From: mo khan Date: Tue, 17 Jun 2025 11:52:03 -0600 Subject: feat: create sts binary and run it --- cmd/sts/main.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 cmd/sts/main.go (limited to 'cmd') diff --git a/cmd/sts/main.go b/cmd/sts/main.go new file mode 100644 index 0000000..89dd49f --- /dev/null +++ b/cmd/sts/main.go @@ -0,0 +1,22 @@ +package main + +import ( + "context" + "net/http" + "os" + + "github.com/xlgmokha/x/pkg/log" + "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/pls" + "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/sts" +) + +func main() { + logger := log.New(os.Stdout, log.Fields{"app": "sts"}) + ctx := logger.WithContext(context.Background()) + + logger.Log().Str("status", "ready").Send() + pls.LogError(ctx, http.ListenAndServe( + ":9090", + sts.New(ctx), + )) +} -- cgit v1.2.3