Skip to content

feat(v2): package pinned upstream Agent Plugins #12

feat(v2): package pinned upstream Agent Plugins

feat(v2): package pinned upstream Agent Plugins #12

Workflow file for this run

name: Validate Templates
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Validate all agent and skill templates
run: python scripts/validate.py
- name: Install Agent v2 validation dependencies
run: python -m pip install --disable-pip-version-check -r v2/requirements.txt
- name: Test Agent v2 Store validation
run: python -m unittest discover -s v2/tests -v
- name: Rebuild pinned Agent Plugin sources
run: python v2/scripts/source_package.py --check
- name: Validate Agent v2 Store
run: python v2/scripts/validate.py
- name: Enforce published Agent v2 package immutability
env:
BASE_SHA: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}
run: |
set -eu
baseline="$RUNNER_TEMP/v2-baseline-catalog.json"
git fetch --no-tags --depth=1 origin "$BASE_SHA"
if git cat-file -e "${BASE_SHA}:v2/catalog.json" 2>/dev/null; then
git show "${BASE_SHA}:v2/catalog.json" > "$baseline"
python v2/scripts/catalog.py --check-baseline "$baseline"
fi