Skip to content

Commit 49c7d2e

Browse files
tatianabTatiana Bradley
authored and
Tatiana Bradley
committed
terraform/environment: remove scan-modules job
Remove the "scan-modules" job from the terraform config. Once this change is applied and we have verified that the endpoint is not being hit, we will remove the code for scan-modules. Change-Id: I1d76fbf504b9b1c71063470fae59163649512107 Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/459598 Reviewed-by: Tatiana Bradley <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Julie Qiu <[email protected]> Run-TryBot: Tatiana Bradley <[email protected]>
1 parent c82a346 commit 49c7d2e

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

terraform/environment/worker.tf

-27
Original file line numberDiff line numberDiff line change
@@ -183,30 +183,3 @@ resource "google_cloud_scheduler_job" "vuln_issue_triage" {
183183
retry_count = 0
184184
}
185185
}
186-
187-
resource "google_cloud_scheduler_job" "scan_modules" {
188-
name = "vuln-${var.env}-scan-modules"
189-
description = "Scan selected modules for vulns."
190-
schedule = "30 * * * *" # every hour on the half hour
191-
time_zone = local.tz
192-
project = var.project
193-
attempt_deadline = format("%ds", 30 * 60)
194-
195-
http_target {
196-
http_method = "POST"
197-
uri = "${google_cloud_run_service.worker.status[0].url}/scan-modules"
198-
oidc_token {
199-
service_account_email = data.google_compute_default_service_account.default.email
200-
audience = var.oauth_client_id
201-
}
202-
}
203-
204-
retry_config {
205-
max_backoff_duration = "3600s"
206-
max_doublings = 5
207-
max_retry_duration = "0s"
208-
min_backoff_duration = "5s"
209-
retry_count = 0
210-
}
211-
}
212-

0 commit comments

Comments
 (0)