Skip to content

Commit 9d1bdee

Browse files
Copilotsofthack007
andauthored
Add CI/CD path_instructions entry to .coderabbit.yaml
Agent-Logs-Url: https://github.com/MoonModules/WLED-MM/sessions/35fc45a7-beb0-47db-94d3-4a1f551a5cc9 Co-authored-by: softhack007 <91616163+softhack007@users.noreply.github.com>
1 parent 04c4804 commit 9d1bdee

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.coderabbit.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# .github/copilot-instructions.md — project overview & general rules
66
# .github/cpp.instructions.md — C++ coding conventions
77
# .github/web.instructions.md — Web UI coding conventions
8+
# .github/cicd.instructions.md — GitHub Actions / CI-CD conventions
89
#
910
# NOTE: This file must be committed (tracked by git) for CodeRabbit to read
1011
# it from the repository. If it is listed in .gitignore, CodeRabbit will
@@ -48,3 +49,14 @@ reviews:
4849
as a .h file that is pulled in by wled00/usermods_list.cpp (guarded by
4950
#ifdef). Usermods do not use library.json. Follow the same C++ conventions
5051
as the core firmware (.github/cpp.instructions.md).
52+
53+
- path: ".github/workflows/*.{yml,yaml}"
54+
instructions: >
55+
Follow the CI/CD conventions documented in .github/cicd.instructions.md.
56+
57+
Key rules: 2-space indentation, descriptive name: on every workflow/job/step.
58+
Third-party actions must be pinned to a specific version tag — branch pins
59+
such as @main or @master are not allowed. Declare explicit permissions: blocks
60+
scoped to least privilege. Never interpolate github.event.* values directly
61+
into run: steps — pass them through an env: variable to prevent script
62+
injection. Do not use pull_request_target unless fully justified.

0 commit comments

Comments
 (0)