From 1bafad5a86af65cb78a81a89f8e08fd7c5e8b605 Mon Sep 17 00:00:00 2001 From: Max Mayfield Date: Sun, 1 Mar 2026 07:03:51 +0000 Subject: [PATCH] CI: add go mod tidy to Go agent workflow to fix missing go.sum --- .gitea/workflows/ci-p2-drift.yml | 2 +- products/02-iac-drift-detection/agent/cmd/drift/main.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci-p2-drift.yml b/.gitea/workflows/ci-p2-drift.yml index 2bd2075..2e5a96e 100644 --- a/.gitea/workflows/ci-p2-drift.yml +++ b/.gitea/workflows/ci-p2-drift.yml @@ -26,7 +26,7 @@ jobs: - name: Test agent run: | export PATH="/usr/local/go/bin:$HOME/go/bin:$PATH" - cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/agent && go test ./... + cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/agent && go mod tidy && go test ./... - name: Vet run: | diff --git a/products/02-iac-drift-detection/agent/cmd/drift/main.go b/products/02-iac-drift-detection/agent/cmd/drift/main.go index 4b53033..e6fd100 100644 --- a/products/02-iac-drift-detection/agent/cmd/drift/main.go +++ b/products/02-iac-drift-detection/agent/cmd/drift/main.go @@ -100,3 +100,4 @@ func runWatch(sqsQueue, endpoint, apiKey string, interval int) error { // TODO: SQS consumer loop → scanner → reporter return nil } +// Re-trigger Go CI