name: Scaffold Checks
on:
  pull_request:
  push:
    branches: [main]

permissions:
  contents: read

jobs:
  scaffold-lint:
    runs-on: blacksmith-4vcpu-ubuntu-2404
    steps:
      - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
      - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
        with:
          python-version: "3.12"
      - name: AI RMF artifact check
        run: python tools/ci/ai_rmf_validate_artifacts.py
      - name: AI Act technical file check
        run: python tools/ci/ai_act_lint.py
      - name: Log schema validation
        run: python tools/ci/validate_log_schema.py
      - name: Scaffold adoption check
        continue-on-error: true  # Non-blocking until templates are customized
        run: python tools/ci/validate_scaffold_adoption.py
