When I try to create a github mirror, I get this error:
module.forgejo.forgejo_repository.bri_plugins_mirror: Creating...
╷
│ Error: Unable to create repository
│
│ with module.forgejo.forgejo_repository.mirror,
│ on ../../projects/forgejo/mirror.tf line 10, in resource "forgejo_repository" "mirror":
│ 10: resource "forgejo_repository" "mirror" {
│
│ Unknown error (status 405): unknown API Error: 405
│ Request: '/api/v1/repos/migrate' with 'GET' method and '' body
╵
Error: Process completed with exit code 1.
Seems like it's using the wrong HTTP method to interact with that endpoint. I checked and /migrate only accepts POSTs.
Here's the corresponding code:
resource "forgejo_repository" "mirror" {
name = "mirror"
clone_addr = "https://github.com/censored/private_repo.git"
auth_token = data.azurerm_key_vault_secret.forgejo_auth_token.value
mirror = true
mirror_interval = "12h0m0s"
}
I'm running forgejo version: 15.0.6+gitea-1.22.0 built with GNU Make 4.4.1, go1.26.5 : bindata, timetzdata, sqlite, sqlite_unlock_notify
When I try to create a github mirror, I get this error:
Seems like it's using the wrong HTTP method to interact with that endpoint. I checked and /migrate only accepts POSTs.
Here's the corresponding code:
I'm running forgejo version: 15.0.6+gitea-1.22.0 built with GNU Make 4.4.1, go1.26.5 : bindata, timetzdata, sqlite, sqlite_unlock_notify