summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-06-17 11:52:03 -0600
committermo khan <mo@mokhan.ca>2025-06-17 11:52:03 -0600
commit1396c4e251a2bf9eb8c8c22bd4bc25f847f38775 (patch)
treec6ae0cbc1e6f3ab464547914068e1416324d7a61 /cmd
parentc1606e1851c28160266a8f43cc77d22bf4a8913e (diff)
feat: create sts binary and run it
Diffstat (limited to 'cmd')
-rw-r--r--cmd/sts/main.go22
1 files changed, 22 insertions, 0 deletions
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),
+ ))
+}