diff --git a/components/BUILD.yaml b/components/BUILD.yaml
index 1bc22a82abafe6..c27db97459bc3c 100644
--- a/components/BUILD.yaml
+++ b/components/BUILD.yaml
@@ -99,3 +99,9 @@ scripts:
         ./generate.sh
         popd > /dev/null
       done
+  - name: update-go-modules
+    srcs:
+      - components/**/*
+      - test/**/*
+    script: |
+      leeway exec --filter-type go -v -- go mod tidy -v