nuttx-apps/.github
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
..
ISSUE_TEMPLATE Fix /.github/ISSUE_TEMPLATE/001_bug_report.yml:122: Intertial ==> Inertial 2025-06-24 22:19:00 +08:00
linters .github/linters: Ignore E704 warning 2025-06-24 22:19:00 +08:00
workflows github/workflow: Sync the new PR Labeling Workflow from NuttX Repo to NuttX Apps 2026-02-23 20:33:22 +08:00
dependabot.yml chore: Included githubactions in the dependabot config 2022-06-21 16:43:58 +03: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
PULL_REQUEST_TEMPLATE.md Contributing and PR template fix. 2025-06-24 22:19:00 +08:00
SECURITY.md docs: Include released 10.x and 11.x versions under security policy. 2025-06-24 22:19:00 +08:00