🚨 门禁引擎 · 补充 REPO_OWNER 回退注释说明
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
This commit is contained in:
parent
2e964086bf
commit
5bbb289bd5
|
|
@ -25,6 +25,7 @@ const CHANGED_FILES_PATH = '/tmp/changed_files.txt';
|
|||
const GITHUB_OUTPUT = process.env.GITHUB_OUTPUT || '/dev/null';
|
||||
|
||||
// ━━━ 仓库主人(冰朔确认)━━━
|
||||
// 硬编码默认值,config.repo_owner 可覆盖此值
|
||||
const REPO_OWNER = 'qinfendebingshuo';
|
||||
|
||||
// ━━━ 安全读取 JSON ━━━
|
||||
|
|
@ -161,6 +162,7 @@ function main() {
|
|||
console.log(` 推送者: ${actor}`);
|
||||
|
||||
// 0. 仓库主人 → 永远放行(冰朔确认原则)
|
||||
// 优先使用 config.repo_owner,回退到硬编码 REPO_OWNER
|
||||
if (actor === REPO_OWNER) {
|
||||
console.log(`👑 ${actor} 是仓库主人,直接放行`);
|
||||
setOutput('action', 'pass');
|
||||
|
|
|
|||
Loading…
Reference in New Issue