Verify that collaborators/maintainers added to the MAINTAINERS.yml file actually have access to the project and are members. Only those who already gained access following the process shall be added to the file. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: Maintainer file check
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- MAINTAINERS.yml
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
assignment:
|
|
name: Check MAINTAINERS.yml changes
|
|
runs-on: ubuntu-24.04
|
|
|
|
steps:
|
|
- name: Check out source code
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
|
|
with:
|
|
python-version: 3.12
|
|
cache: pip
|
|
cache-dependency-path: scripts/requirements-actions.txt
|
|
|
|
- name: Install Python packages
|
|
run: |
|
|
pip install -r scripts/requirements-actions.txt --require-hashes
|
|
|
|
- name: Fetch MAINTAINERS.yml from mainline
|
|
run: |
|
|
git fetch origin main
|
|
git show origin/main:MAINTAINERS.yml > mainline_MAINTAINERS.yml
|
|
|
|
- name: Check maintainer file changes
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
python ./scripts/ci/check_maintainer_changes.py \
|
|
--repo zephyrproject-rtos/zephyr mainline_MAINTAINERS.yml MAINTAINERS.yml
|