Skip to content

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.

Scope comment template permissions to the comment job (#529)

Christopher Kevinf25d5789a6eb
diff --git a/CHANGELOG.md b/CHANGELOG.md
index aaf28ac7..f6614b02 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -198,6 +198,8 @@ All notable changes to SkillEvaluator are documented in this file.
### Fixed
+- The comments-only consumer template now grants its required read and PR-comment
+ permissions only to the comment job, with no workflow-wide token permissions.
- The behavior evidence gate no longer keeps a score for an expectation that
names an observed artifact but also asks for something only the final answer
could show. "Writes `report.py` and explains why each column was dropped" was
diff --git a/ci/templates/comment-skill-checks.yml b/ci/templates/comment-skill-checks.yml
index 2bdfd1c7..9734f935 100644
--- a/ci/templates/comment-skill-checks.yml
+++ b/ci/templates/comment-skill-checks.yml
@@ -17,12 +17,13 @@ on:
description: Completed attempt number for that run
type: string
required: true
-permissions:
- contents: read
- actions: read
- pull-requests: write
+permissions: {}
jobs:
comment:
+ permissions:
+ contents: read
+ actions: read
+ pull-requests: write
uses: NVIDIA/SkillEvaluator/.github/workflows/comment-skill-checks.yml@RELEASE_WORKFLOW_SHA
with:
run-id: ${{ format('{0}', github.event.workflow_run.id || inputs.run-id) }}
diff --git a/tests/ci/test_render_templates.py b/tests/ci/test_render_templates.py
index 55dbb279..80cfa5e2 100644
--- a/tests/ci/test_render_templates.py
+++ b/tests/ci/test_render_templates.py
@@ -30,7 +30,12 @@ def test_release_templates_are_copyable_and_bind_the_actual_caller(tmp_path):
assert publisher["jobs"]["reports"]["with"]["trusted-caller-blobs"] == blob
assert publisher["jobs"]["reports"]["with"]["tools-ref"] == "b" * 40
comments = yaml.load((output / "comment-skill-checks.yml").read_text(), Loader=yaml.BaseLoader)
- assert comments["permissions"] == {"contents": "read", "actions": "read", "pull-requests": "write"}
+ assert comments["permissions"] == {}
+ assert comments["jobs"]["comment"]["permissions"] == {
+ "contents": "read",
+ "actions": "read",
+ "pull-requests": "write",
+ }
assert comments["on"]["workflow_run"] == {"workflows": ["Skill checks"], "types": ["completed"]}
assert set(comments["on"]["workflow_dispatch"]["inputs"]) == {"run-id", "run-attempt"}
assert all(value["required"] == "true" for value in comments["on"]["workflow_dispatch"]["inputs"].values())