Multi-tier framework for evaluating AI agent skills and plugins with quality gates, security scanning, harness compatibility checks, semantic overlap detection, synthetic evaluation dataset generation, and live agent evaluation that measures how skills affect agent behavior. Ships reusable CI templates that bring every check to any repository.
Python agent-evaluationagent-pluginsagent-securityagent-skillsagentic-aibenchmarkci-templatesclaude-codecodexevaluateevaluationharnesspluginplugin-evaluationsecurity-scannerskill-evalskill-evaluationskill-evaluatorskill-gap-analysisskills
fix: harden all CI workflow guards (#158)
Efea2636b2f8862
diff --git a/.github/workflows/dco.yml b/.github/workflows/dco.ymlindex d0348701..bd11753e 100644--- a/.github/workflows/dco.yml+++ b/.github/workflows/dco.yml@@ -23,6 +23,7 @@ jobs:with:fetch-depth: 0ref: ${{ github.event.pull_request.head.sha }}+ persist-credentials: false- name: Verify DCO sign-off on every commitenv:diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.ymlindex c2f723c6..a1ead4c1 100644--- a/.github/workflows/publish-docs.yml+++ b/.github/workflows/publish-docs.yml@@ -5,16 +5,29 @@ on:branches:- main+permissions:+ contents: read+jobs:run:runs-on: ubuntu-latestif: ${{ github.event_name == 'push' && contains(github.ref, 'refs/heads/main') && github.run_number > 1 }}steps:- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0+ with:+ persist-credentials: false- name: Install Fern- run: npm install -g fern-api+ shell: bash+ run: |+ set -euo pipefail+ FERN_VERSION="$(node -p "require('./fern/fern.config.json').version")"+ if [[ ! "$FERN_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then+ echo "::error file=fern/fern.config.json::Invalid Fern CLI version: $FERN_VERSION"+ exit 1+ fi+ npm install --global "fern-api@$FERN_VERSION"- name: Publish Docsenv:diff --git a/tests/test_ci_workflows.py b/tests/test_ci_workflows.pyindex a3a03f82..211f31d4 100644--- a/tests/test_ci_workflows.py+++ b/tests/test_ci_workflows.py@@ -56,6 +56,10 @@ def _all_steps(workflow: dict[str, Any]) -> list[dict[str, Any]]:return [step for job in workflow["jobs"].values() for step in job.get("steps", [])]+def _workflow_names() -> list[str]:+ return sorted(path.name for path in WORKFLOWS.glob("*.y*ml"))++def test_ci_preserves_required_contexts_as_explicit_jobs() -> None:ci = _load("ci.yml")@@ -224,14 +228,23 @@ def test_non_pr_workflow_triggers_are_preserved() -> None:assert "workflow_dispatch" in security["on"]-def test_changed_workflows_pin_every_action_to_a_commit() -> None:- for workflow_name in ("ci.yml", "security.yml"):+def test_all_workflows_pin_every_action_to_a_commit() -> None:+ for workflow_name in _workflow_names():for uses in _all_uses(_load(workflow_name)):assert re.fullmatch(r"[^@]+@[0-9a-f]{40}", uses), uses-def test_changed_workflows_do_not_persist_checkout_credentials() -> None:- for workflow_name in ("ci.yml", "security.yml"):+def test_all_workflows_do_not_persist_checkout_credentials() -> None:+ for workflow_name in _workflow_names():checkout_steps = [step for step in _all_steps(_load(workflow_name)) if step.get("uses", "").startswith("actions/checkout@")]assert checkout_stepsassert all(step.get("with", {}).get("persist-credentials") == "false" for step in checkout_steps)+++def test_all_workflows_declare_restricted_permissions() -> None:+ for workflow_name in _workflow_names():+ workflow = _load(workflow_name)+ assert "permissions" in workflow+ assert workflow["permissions"] != "write-all"+ for job in workflow["jobs"].values():+ assert job.get("permissions", {}) != "write-all"