Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/codeowners.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

# Reusable workflow to lint CODEOWNERS files in our *-infra repos

name: Lint CODEOWNERS

on:
workflow_call:
inputs:
exclude_dirs:
description: 'Directories to exclude from linting (space-separated, e.g. "projects misc modules")'
type: string
required: false
default: ""

jobs:
lint-codeowners:
runs-on: ubuntu-latest
container:
image: us-west1-docker.pkg.dev/moz-fx-platform-artifacts/platform-shared-images/sre-citools:1.0
options: --cpus 1
steps:
- name: Clone Repository
uses: actions/checkout@v6
with:
persist-credentials: false

- name: Lint CODEOWNERS
run: |
exclude_args=""
for dir in ${INPUTS_EXCLUDE_DIRS}; do
exclude_args="$exclude_args --excludedirs $dir"
done
/usr/bin/lint-codeowners $PWD $exclude_args
env:
INPUTS_EXCLUDE_DIRS: ${{ inputs.exclude_dirs }}
Loading