# Scorecard Rule: Supported Language Version

A Datadog Lambda that evaluates if services are running on supported programming language versions.

## Overview

This lambda:
1.  Fetches all services from the Datadog Software Catalog.
2.  Checks their `languages` definition (e.g., `python`, `java`, `js`).
3.  Validates the `language_version` tag (e.g., `language_version:3.11`) against a minimum supported version matrix.
4.  Updates the coresponding Datadog Scorecard Rule with `PASS` or `FAIL`.

## Configuration

*   **`SUPPORTED_VERSIONS`**: Defined in `config.py`.
*   **`DD_SCORECARD_RULE_ID`**: Env var
*   **`DD_API_KEY`**: Secret (qa, prod) or env var (dev)
*   **`DD_APP_KEY`**: Secret (qa, prod) or env var (dev)

## Development

Uses `uv` for dependency management and `ruff` for linting.

```bash
# Build and Test
make lint_and_test

# Run Locally
docker-compose up function
```
