$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "sources": [
< {
< "source": "hashicorp/aws",
< "kind": "provider",
< "constraint": "~> 5.0"
< },
< {
< "source": "hashicorp/random",
< "kind": "provider",
< "constraint": "~> 3.6"
< },
< {
< "source": "hashicorp/template",
< "kind": "provider",
< "constraint": ">= 2.0"
< },
< {
< "source": "integrations/github",
< "kind": "provider",
< "constraint": "~> 5.0"
< },
< {
< "source": "terraform-aws-modules/vpc/aws",
< "kind": "module",
< "constraint": "~> 5.0"
< },
< {
< "source": "terraform-aws-modules/security-group/aws",
< "kind": "module",
< "constraint": "~> 5.1"
< }
< ],
< "registry": "terraform",
< "staleDays": 365,
< "failOnDeprecated": true,
< "failOnStale": false,
< "failOnMajorBehind": 0
<}
<EOF
$curl "https://api.apify.com/v2/actors/kingii98~terraform-and-opentofu-registry-deprecation-and-staleness-gate/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'