nuttx-apps/.github/workflows
Lup Yuen Lee fe546acfc7 github/workflow: Sync the new PR Labeling Workflow from NuttX Repo to NuttX Apps
This PR replicates the new PR Labeling Workflow from NuttX Repo to NuttX Apps Repo. For Future Syncing:
- Copy from NuttX Repo to NuttX Apps: `.github/workflows/labeler.yml` and `.github/workflows/pr_labeler.yml`
- Edit `.github/workflows/labeler.yml` and change `repository: apache/nuttx` to `repository: apache/nuttx-apps`
- Don't overwrite `.github/labeler.yml` by NuttX Repo

The new workflow reimplements PR Labeling with two triggers: pull_request and workflow_run. We no longer need pull_request_target, which is an unsafe trigger and may introduce security vulnerabilities.

The New PR Labeler is explained here:
- https://lupyuen.org/articles/prtarget
- https://github.com/apache/nuttx/issues/18359

Modified Files:

`.github/workflows/labeler.yml`: Changed the (read-write) pull_request_target trigger to (read-only) pull_request trigger. Compute the Size Label (e.g. Size: XS) and Arch Labels (e.g. Area: Examples). Save the PR Labels into a PR Artifact.

`.github/labeler.yml`: Added comment to clarify that NuttX PR Labeler only supports a subset of the `actions/labeler` syntax: `changed-files` and `any-glob-to-any-file`. Note: Don't overwrite this file by NuttX Repo.

New Files:

`.github/workflows/pr_labeler.yml`: Contains the workflow_run trigger, which is executed upon completion of the pull_request trigger. Download the PR Labels from the PR Artifact. Write the PR Labels into the PR.

Signed-off-by: Lup Yuen Lee <luppy@appkaki.com>
2026-02-23 20:33:22 +08:00
..
arch.yml CI: Increase CI Jobs to 100% for Complex PRs 2025-01-08 13:08:05 +08:00
build.yml .github/build.yml: fix python venv installation 2026-01-12 11:04:21 -05:00
check.yml build(deps): bump actions/checkout from 5 to 6 2025-11-25 10:03:55 +08:00
issue_labeler.yml build(deps): bump actions/github-script from 7 to 8 2025-09-10 09:44:13 +08:00
labeler.yml github/workflow: Sync the new PR Labeling Workflow from NuttX Repo to NuttX Apps 2026-02-23 20:33:22 +08:00
lint.yml build(deps): bump actions/checkout from 5 to 6 2025-11-25 10:03:55 +08:00
pr_labeler.yml github/workflow: Sync the new PR Labeling Workflow from NuttX Repo to NuttX Apps 2026-02-23 20:33:22 +08:00