name: Licenses

on:
  workflow_call:

permissions:
  contents: read

jobs:
  licenses:
    name: License Check
    runs-on: ubuntu-24.04
    timeout-minutes: 10
    steps:
      - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

      - name: Build embedded control plane binaries
        uses: ./.github/actions/build-controlplane-binaries

      - name: Check NOTICE freshness
        run: make licenses-check
