-
-
Notifications
You must be signed in to change notification settings - Fork 10
33 lines (27 loc) · 933 Bytes
/
Copy pathcheck-api-boundary.yml
File metadata and controls
33 lines (27 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: API Boundary Check
# Blocks merges that bypass the unraid-api library with direct network I/O.
# All Unraid server communication MUST go through UnraidClient (unraid-api).
# Missing library features → open an issue at https://github.com/ruaan-deysel/unraid-api
on:
push:
paths:
- "custom_components/unraid/**/*.py"
- "script/check_api_boundary.py"
pull_request:
paths:
- "custom_components/unraid/**/*.py"
- "script/check_api_boundary.py"
permissions:
contents: read
jobs:
api-boundary:
name: No unraid-api bypass
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.13"
- name: Check API boundary
run: python script/check_api_boundary.py