Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ Choose checks and optional hosted feedback, then review the setup PR.
[CLI setup guide](docs/cli-onboarding.mdx).

**Manual setup:** copy a filled-in template from
[CI templates](https://github.com/NVIDIA/SkillEvaluator/tree/main/ci/bundles/0.8.0). No local CLI needed.
[CI templates](https://github.com/NVIDIA/SkillEvaluator/tree/main/ci/bundles/0.9.0). No local CLI needed.

| Your repository | Ready-to-use template | Copy destination |
| --- | --- | --- |
| GitHub | [Skill checks](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/bundles/0.8.0/skill-checks.yml) | `.github/workflows/skill-checks.yml` |
| GitLab | [Skill checks](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/bundles/0.8.0/gitlab-skill-checks.yml) | `.gitlab-ci.yml`, or merge into your existing pipeline |
| GitHub reports and PR comments | [Optional publisher](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/bundles/0.8.0/publish-skill-reports.yml) | Second workflow; complete publisher setup |
| GitHub | [Skill checks](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/bundles/0.9.0/skill-checks.yml) | `.github/workflows/skill-checks.yml` |
| GitLab | [Skill checks](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/bundles/0.9.0/gitlab-skill-checks.yml) | `.gitlab-ci.yml`, or merge into your existing pipeline |
| GitHub reports and PR comments | [Optional publisher](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/bundles/0.9.0/publish-skill-reports.yml) | Second workflow; complete publisher setup |

See [GitHub](docs/github-actions.mdx) and [GitLab](docs/gitlab-ci.mdx) setup,
[template reference](ci/templates/README.md) and [report examples](ci/examples/README.md).
Expand Down
26 changes: 26 additions & 0 deletions ci/bundles/0.9.0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Repository CI onboarding

## GitHub: choose your templates

- Checks and downloadable reports: copy `skill-checks.yml` to `.github/workflows/skill-checks.yml`. Set `paths` to your skill roots and choose `min-score` (default 70).
- Hosted reports and PR comments: also copy `publish-skill-reports.yml` to `.github/workflows/` and complete the one-time setup below.

The workflow and image pins are already filled in. Both templates use GitHub's automatic token; no personal token or model key is needed for the default checks. Your organization must allow the referenced actions and the provided permissions.

### One-time publisher setup

1. Enable Settings → Pages → Source: GitHub Actions. Reports can include source excerpts; a private repository does not automatically make its Pages site private. Use scan artifacts if hosting is unsuitable. Coordinate any existing Pages site first.
2. Initialize a new `gh-pages` history branch with `.nojekyll` and `history.json` containing `[]`. Preserve existing site content and history.
3. Set `YOUR_REPORT_BASE_URL` in the publisher template to your Pages URL.
4. Uncomment `id-token: write` under `permissions` in `skill-checks.yml` for signed execution receipts. After customizing the scan file, run `git hash-object .github/workflows/skill-checks.yml` and put the result in `trusted-caller-blobs`. Refresh this value after every scan-file edit.
5. Merge both files into your default branch, keeping the supplied scan filename, workflow name and artifact name. The publisher already declares its required permissions.

New eligible PR scans trigger publication automatically. After successful deployment, the bot creates or updates one comment on the current, open, same-repository PR. Fork PR comments and comment-only operation are not supported by this publisher.

Without the signing permission, ordinary scans and downloadable reports still run; hosting is skipped. Commit the setup and trigger a new scan; rerunning an old job keeps its original workflow.

[Full publisher setup](https://github.com/NVIDIA/SkillEvaluator/blob/ba7779ad617c6444c98b6241a75bce92067e9d56/ci/README.md#optional-hosted-reports-and-pr-feedback).

## GitLab

For GitLab, merge gitlab-skill-checks.yml into your root .gitlab-ci.yml and set SKILL_EVAL_PATHS. Its rules must remain in the root file to enable merge-request pipelines.
9 changes: 9 additions & 0 deletions ci/bundles/0.9.0/SHA256SUMS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
2c52251efdf1c79460139d134e1ad587e319d8d98d011d0f8f0350419cb2e84b README.md
4e4a95da5c3454d0ad75c06268658f39d93701ca092129214b32cd542b76f100 gitlab-skill-checks.yml
51f8a3daa747660c97d30cb14d773f92f2258b0251f962d28bd373e29f41cf46 publish-skill-reports.yml
2fcf23092e962fb48859c7ff8b9d421856f39d9d0baab2df4af8229501a64275 release.json
7ba229700078840d44b821baedfeaf1e6d4c53bf41d3a1fe555742b3c010d239 scanner-inventory.json
543fcaf703f4767950df5c36c2bd1bc0e83e23b032af4ec74398240b1ae528ab skill-checks-llm.yml
4fe77487f14d9f214362386fa1ae4299962620d1a28522365f7821c683078acb skill-checks.yml
6f57a21444c1a5fa414f92566afa3eeb4781e7d4be2b8cb815ba7a67bdf73fa7 verification-receipt.json
e5e5b22f02dd77b49a2f5d750af0e89d6c8047c7553913396f7b73c6afe3d409 skillevaluator-ci-0.9.0.zip
21 changes: 21 additions & 0 deletions ci/bundles/0.9.0/gitlab-skill-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# SPDX-License-Identifier: Apache-2.0
# Merge this into an existing .gitlab-ci.yml or use it as the complete file.
# The release-generated copy pins both the reusable job and its container image.
# The image uses the default OSS policy for public and private repositories.
# No internal/external variable is needed; artifacts follow repository access.
include:
- remote: https://raw.githubusercontent.com/NVIDIA/SkillEvaluator/ba7779ad617c6444c98b6241a75bce92067e9d56/ci/gitlab/skill-evaluation.yml

variables:
SKILL_EVAL_IMAGE: ghcr.io/nvidia/skillevaluator-tier1@sha256:e96e3aaad89bf78c4f3f8c621e88005d18bd7c485b29c0d7945864700e5944e6
SKILL_EVAL_PATHS: "skills"
SKILL_EVAL_MIN_SCORE: "70"
SKILL_EVAL_SECURITY_BASELINES: "false"

# GitLab requires merge-request rules directly in the root file, even when a
# job is included. Preserve your existing workflow rules if you have them.
skill-evaluation:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
- if: '$CI_PIPELINE_SOURCE == "web"'
47 changes: 47 additions & 0 deletions ci/bundles/0.9.0/publish-skill-reports.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# SPDX-License-Identifier: Apache-2.0
# Optional: requires Pages, a retained gh-pages branch and your own trust settings.
# Pages reports are public unless the site is explicitly private (GitHub Enterprise Cloud).
# Reports include source evidence; private repositories should otherwise use scan artifacts.
# Use the release-generated file; set your own URL and refresh the caller blob after scan-file edits.
# Also grant id-token: write in skill-checks.yml so scans retain signed execution receipts.
name: Publish skill reports
on:
workflow_run:
workflows: [Skill checks]
types: [completed]
workflow_dispatch:
inputs:
run-id:
description: Completed Skill checks run to publish
type: string
required: true
run-attempt:
description: Completed attempt number for that run
type: string
required: true
permissions:
contents: write
actions: read
pages: write
id-token: write
pull-requests: write
jobs:
reports:
uses: NVIDIA/SkillEvaluator/.github/workflows/publish-skill-reports.yml@ba7779ad617c6444c98b6241a75bce92067e9d56
with:
run-id: ${{ format('{0}', github.event.workflow_run.id || inputs.run-id) }}
run-attempt: ${{ format('{0}', github.event.workflow_run.run_attempt || inputs.run-attempt) }}
report-base-url: YOUR_REPORT_BASE_URL
trusted-evaluator-shas: ba7779ad617c6444c98b6241a75bce92067e9d56
trusted-caller-blobs: 7222c6c781ad6b4d832f39da5ea5c5a83b55fedc
# Approve each wrapper by its exact workflow path and full SHA or tag name.
# Tags use GitHub's recorded historical commit, never the tag's current target.
# trusted-wrapper-workflows: your-org/shared-ci/.github/workflows/skill-checks.yml@FULL_COMMIT_SHA
# To let one shared wrapper select new pinned evaluator revisions, explicitly delegate:
# trusted-wrapper-workflows: your-org/shared-ci/.github/workflows/skill-checks.yml@v3
# delegated-evaluator-wrapper: your-org/shared-ci/.github/workflows/skill-checks.yml@v3
# Delegation requires the approved caller's only job to call that wrapper, without a matrix.
# Only this wrapper and one pinned evaluator leaf may appear in the historical run.
# With delegation, trusted-evaluator-shas may be omitted; caller blob approval stays required.
tools-ref: ba7779ad617c6444c98b6241a75bce92067e9d56
tools-repository: NVIDIA/SkillEvaluator
7 changes: 7 additions & 0 deletions ci/bundles/0.9.0/release.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"repository": "NVIDIA/SkillEvaluator",
"workflow_ref": "ba7779ad617c6444c98b6241a75bce92067e9d56",
"publisher_ref": "ba7779ad617c6444c98b6241a75bce92067e9d56",
"image": "ghcr.io/nvidia/skillevaluator-tier1@sha256:e96e3aaad89bf78c4f3f8c621e88005d18bd7c485b29c0d7945864700e5944e6",
"caller_blob": "7222c6c781ad6b4d832f39da5ea5c5a83b55fedc"
}
32 changes: 32 additions & 0 deletions ci/bundles/0.9.0/scanner-inventory.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"bandit": {
"command": "bandit --version",
"version": "1.9.4"
},
"pip-audit": {
"command": "pip-audit --version",
"version": "2.10.1"
},
"skillspector": {
"command": "skillspector --version",
"version": "2.13.3"
},
"skillevaluator": {
"command": "skillevaluator --version",
"version": "0.9.0"
},
"semgrep": {
"command": "semgrep --version",
"version": "1.182.0"
},
"gitleaks": {
"command": "gitleaks version",
"version": "8.30.0"
},
"verification": {
"method": "Version commands executed in the runtime stage of the official image build; anonymous public manifest configuration digest matches the actual image used by all five release smoke cases.",
"image": "ghcr.io/nvidia/skillevaluator-tier1@sha256:e96e3aaad89bf78c4f3f8c621e88005d18bd7c485b29c0d7945864700e5944e6",
"source_revision": "ba7779ad617c6444c98b6241a75bce92067e9d56",
"build_run": "https://github.com/NVIDIA/SkillEvaluator/actions/runs/43410730915"
}
}
23 changes: 23 additions & 0 deletions ci/bundles/0.9.0/skill-checks-llm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# SPDX-License-Identifier: Apache-2.0
# Optional trusted manual run; the basic skill-checks.yml needs no model secret.
# Use the release-generated copy with reviewed workflow and image pins.
# The image uses the same default OSS policy for public and private repositories.
# LLM content sharing is controlled by llm and the selected provider, not a profile.
name: Skill checks with LLM
on:
workflow_dispatch:
permissions:
contents: read
jobs:
skills:
uses: NVIDIA/SkillEvaluator/.github/workflows/evaluate-skills.yml@ba7779ad617c6444c98b6241a75bce92067e9d56
with:
image: ghcr.io/nvidia/skillevaluator-tier1@sha256:e96e3aaad89bf78c4f3f8c621e88005d18bd7c485b29c0d7945864700e5944e6
paths: skills
min-score: 70
security-baselines: false
scan-mode: all
llm: true
llm-provider: openai
secrets:
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
25 changes: 25 additions & 0 deletions ci/bundles/0.9.0/skill-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# SPDX-License-Identifier: Apache-2.0
# Use the release-generated copy with reviewed workflow and image pins.
# The image uses the default OSS validation policy for public and private repos.
# No internal/external input is needed; report visibility is configured separately.
name: Skill checks
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
# Hosted reports/PR comments: uncomment this, then refresh trusted-caller-blobs.
# id-token: write
jobs:
skills:
uses: NVIDIA/SkillEvaluator/.github/workflows/evaluate-skills.yml@ba7779ad617c6444c98b6241a75bce92067e9d56
with:
image: ghcr.io/nvidia/skillevaluator-tier1@sha256:e96e3aaad89bf78c4f3f8c621e88005d18bd7c485b29c0d7945864700e5944e6
paths: skills
min-score: 70
# Enable only after the reviewed baseline manifest reaches the target branch.
security-baselines: false
scan-mode: auto
llm: false
Binary file added ci/bundles/0.9.0/skillevaluator-ci-0.9.0.zip
Binary file not shown.
86 changes: 86 additions & 0 deletions ci/bundles/0.9.0/verification-receipt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"all_verified": true,
"image": "ghcr.io/nvidia/skillevaluator-tier1@sha256:e96e3aaad89bf78c4f3f8c621e88005d18bd7c485b29c0d7945864700e5944e6",
"source_revision": "ba7779ad617c6444c98b6241a75bce92067e9d56",
"platform": {
"os": "linux",
"architecture": "amd64"
},
"public_manifest_matches_smoke_tested_image": true,
"anonymous_pull_verified": true,
"official_build_run": "https://github.com/NVIDIA/SkillEvaluator/actions/runs/43410730915",
"image_config_digest": "sha256:3b0317d2b5f84da3bf7ff9a4f7df31f8d280ca09e1444a87924597b82703b8cc",
"image_smoke_cases": [
{
"case": "all-pass",
"verified": true,
"exit_code": 0,
"overall_status": "passed",
"total": 2,
"passed": 2,
"failed": 0,
"incomplete": 0,
"summary_bytes": 405,
"summary_json_sha256": "29a3630cf5792d83facee7092bce3dbf3150f7828b39100e6ccd1d908a683ff1",
"base_sha": "8b57ab00580a71341f175f7ba326c19f413e64c0",
"head_sha": "8b57ab00580a71341f175f7ba326c19f413e64c0"
},
{
"case": "invalid-name",
"verified": true,
"exit_code": 1,
"overall_status": "failed",
"total": 2,
"passed": 1,
"failed": 1,
"incomplete": 0,
"summary_bytes": 718,
"summary_json_sha256": "42a28d4101193703fda9977af9baabe24e76dee69003ac57112e458d721e16bf",
"base_sha": "8b57ab00580a71341f175f7ba326c19f413e64c0",
"head_sha": "232bfe681063465e57ffab922802eca535f78a1e"
},
{
"case": "changed-one",
"verified": true,
"exit_code": 0,
"overall_status": "passed",
"total": 1,
"passed": 1,
"failed": 0,
"incomplete": 0,
"summary_bytes": 405,
"summary_json_sha256": "4faaaaa9ff599c0bbfde18e1ed9ea43ed31b0797814eb3cc13733cb82e369eff",
"base_sha": "8b57ab00580a71341f175f7ba326c19f413e64c0",
"head_sha": "3b7fad887b833cff515482542470cb9c8cef4bb3"
},
{
"case": "no-change",
"verified": true,
"exit_code": 0,
"overall_status": "skipped",
"total": 0,
"passed": 0,
"failed": 0,
"incomplete": 0,
"summary_bytes": 365,
"summary_json_sha256": "3f75ad5b984ccb1d9cc7c74f9acada4333aef98f32f5abc22c478874c37e4978",
"base_sha": "8b57ab00580a71341f175f7ba326c19f413e64c0",
"head_sha": "a955e38b6091d78ac429db71866c5a9b5912d17f"
},
{
"case": "missing-llm-key",
"verified": true,
"exit_code": 1,
"overall_status": "error",
"total": 0,
"passed": 0,
"failed": 0,
"incomplete": 0,
"summary_bytes": 464,
"summary_json_sha256": "d0de7c89a31777dad2950010ec8b92e4953b62f4edda40e7289a25dc1f670f2c",
"base_sha": "8b57ab00580a71341f175f7ba326c19f413e64c0",
"head_sha": "8b57ab00580a71341f175f7ba326c19f413e64c0"
}
],
"scope": "Fresh official image build, five real container smoke cases, anonymous pull in the official onboarding job, and independently verified anonymous registry identity. Consumer GitHub/GitLab runs are recorded separately."
}
16 changes: 8 additions & 8 deletions ci/bundles/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ needed for manual setup.

| Result | Current configuration | Copy destination |
| --- | --- | --- |
| GitHub checks | [skill-checks.yml](0.8.0/skill-checks.yml) | `.github/workflows/skill-checks.yml` |
| GitHub hosted reports and PR comments | [publish-skill-reports.yml](0.8.0/publish-skill-reports.yml) | Second workflow; follow the [setup instructions](0.8.0/README.md) |
| GitLab checks | [gitlab-skill-checks.yml](0.8.0/gitlab-skill-checks.yml) | `.gitlab-ci.yml`, or merge into your existing pipeline |
| Optional manual LLM checks | [skill-checks-llm.yml](0.8.0/skill-checks-llm.yml) | `.github/workflows/skill-checks-llm.yml` |
| GitHub checks | [skill-checks.yml](0.9.0/skill-checks.yml) | `.github/workflows/skill-checks.yml` |
| GitHub hosted reports and PR comments | [publish-skill-reports.yml](0.9.0/publish-skill-reports.yml) | Second workflow; follow the [setup instructions](0.9.0/README.md) |
| GitLab checks | [gitlab-skill-checks.yml](0.9.0/gitlab-skill-checks.yml) | `.gitlab-ci.yml`, or merge into your existing pipeline |
| Optional manual LLM checks | [skill-checks-llm.yml](0.9.0/skill-checks-llm.yml) | `.github/workflows/skill-checks-llm.yml` |

Open a file and use GitHub's **Raw** view to copy its full contents. Workflow
commits and the container image digest are already pinned. [Full setup](0.8.0/README.md).
commits and the container image digest are already pinned. [Full setup](0.9.0/README.md).

## Download and verification

[Download the current ZIP](0.8.0/skillevaluator-ci-0.8.0.zip). Each version folder
[Download the current ZIP](0.9.0/skillevaluator-ci-0.9.0.zip). Each version folder
contains the exact generated files, checksums, source/image identities and
scanner verification records. The historical [0.7.0 files](0.7.0/), [0.7.1 files](0.7.1/) and [0.7.2 files](0.7.2/) remain
available for existing configurations; use 0.8.0 for current onboarding.
scanner verification records. The historical [0.7.0 files](0.7.0/), [0.7.1 files](0.7.1/) [0.7.2 files](0.7.2/) and [0.8.0 files](0.8.0/) remain
available for existing configurations; use 0.9.0 for current onboarding.

## Release convention

Expand Down
2 changes: 1 addition & 1 deletion ci/templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ a separate demo repository.
## Get a version you can run

**These source templates contain placeholders.** Copy the
[ready-to-use configurations](../bundles/0.8.0/README.md) instead; their reviewed
[ready-to-use configurations](../bundles/0.9.0/README.md) instead; their reviewed
workflow commits and container image digest are already filled in.

Open a file in that folder and use GitHub's **Raw** view to copy its complete
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced-ci.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: "Prerequisites and reference for explicitly enabled all-tier CI."

Standard repository onboarding runs quality and security checks without
a model key. The all-tier integration is a separate, **explicit opt-in and
unreleased capability**. Released 0.8.0 bundles and plain `ci init` run only the
unreleased capability**. Released Tier 1 bundles and plain `ci init` run only the
quality and security checks; all-tier setup requires a reviewed candidate CLI
and its bundled schema-version 2 descriptor with the platform's all-tier
capability and immutable pins.
Expand Down
Loading
Loading