Skip to content

docs(review): narrow documentation topic scope #156

docs(review): narrow documentation topic scope

docs(review): narrow documentation topic scope #156

Workflow file for this run

# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
name: Frozen Paths
on:
pull_request_target:
types: [opened, reopened, synchronize, labeled, unlabeled]
branches: [main]
# Reports the same required context on the merge-group SHA. The pull request
# was already checked, so this run only publishes a passing result.
merge_group:
permissions:
contents: read
pull-requests: read
concurrency:
group: frozen-paths-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
frozen-paths:
name: OpenShell / Frozen Paths
if: github.event.repository.fork == false
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Skip for merge groups
if: github.event_name == 'merge_group'
run: echo "Frozen paths were checked on the pull request."
# pull_request_target supplies the trusted default-branch SHA. Load the
# script and path list from it, never from the PR head, so a PR cannot
# edit its own rules. The PR file list is fetched as data via the API.
- name: Check out the guard and path list
if: github.event_name == 'pull_request_target'
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.sha }}
persist-credentials: false
sparse-checkout: |
tasks/scripts/check_frozen_paths.py
.github/frozen-paths.toml
sparse-checkout-cone-mode: false
- name: Fail on changes to frozen paths
if: >-
github.event_name == 'pull_request_target' &&
!contains(github.event.pull_request.labels.*.name, 'tmp:migrate')
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
set -euo pipefail
gh api --paginate "repos/${GH_REPO}/pulls/${PR_NUMBER}/files" \
| jq -s 'add // []' > "${RUNNER_TEMP}/pr-files.json"
python3 tasks/scripts/check_frozen_paths.py --group desktop-drivers --files-json "${RUNNER_TEMP}/pr-files.json"
- name: Bypassed by label
if: >-
github.event_name == 'pull_request_target' &&
contains(github.event.pull_request.labels.*.name, 'tmp:migrate')
run: echo "Frozen path check bypassed by the tmp:migrate label."