File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments