diff --git a/.github/workflows/request-nvskills-ci.yml b/.github/workflows/request-nvskills-ci.yml new file mode 100644 index 000000000..7acd83fac --- /dev/null +++ b/.github/workflows/request-nvskills-ci.yml @@ -0,0 +1,40 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. +# All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +# NVSkills CI evaluates and signs changes under skills/. The NVIDIA skills +# catalog (github.com/NVIDIA/skills) syncs these skills from main every hour, +# and accepts only files that match the signature (skill.oms.sig) NVSkills CI +# writes into the PR. This is the catalog's request workflow, unchanged except +# that it is pinned to a SHA like every other action here. When the catalog +# changes the template, re-pin to its current main. +# +# A maintainer or admin comments `/nvskills-ci` on a PR to start a run. It needs +# the NVSKILLS_CI_DISPATCH_TOKEN secret. A PR that does not touch skills/ skips +# it. +name: Request NVSkills CI + +on: + issue_comment: + types: [created] + pull_request: + types: [opened, reopened, synchronize, ready_for_review] + push: + +jobs: + request: + if: > + github.event_name == 'pull_request' || + (github.event_name == 'issue_comment' && + github.event.issue.pull_request && + startsWith(github.event.comment.body, '/nvskills-ci')) || + (github.event_name == 'push' && + github.actor == (vars.NVSKILLS_SIGNATURE_PUSH_ACTOR || 'nv-skills-ci[bot]') && + startsWith(github.event.head_commit.message, vars.NVSKILLS_SIGNATURE_COMMIT_TITLE || 'Attach NVSkills validation signatures')) + permissions: + contents: read + pull-requests: read + statuses: read + uses: NVIDIA/skills/.github/workflows/team-request.yml@b707bbe61ff1026dd59a44140610f92c8eae1151 # main, 2026-11-06 + secrets: + NVSKILLS_CI_DISPATCH_TOKEN: ${{ secrets.NVSKILLS_CI_DISPATCH_TOKEN }}