Isolate PMO credential from existing differently owned credentials directory
Deploy Canina / deploy (push) Successful in 4m30s

This commit is contained in:
devops committed 2026-10-24 03:45:51 +00:00
1 parent 7485c89e9b
commit ba0aa5ee4e
4 files changed
+8 -6

No files matched your search

+1 -1
View File
@@ -70,7 +70,7 @@ def install(home, payload):
for profile in PROFILES:
skill=home/f'profiles/{profile}/skills/canina-editorial-v4/SKILL.md'
if not skill.is_file() or 'name: canina-editorial-v4' not in skill.read_text():raise ValueError('Skill discovery failed')
credentials=safe(home/'credentials');credentials.mkdir(mode=0o700,exist_ok=True)
credentials=safe(home/'editorial-v4/credentials');credentials.mkdir(mode=0o700,exist_ok=True)
st=credentials.stat()
if st.st_uid!=os.getuid() or stat.S_IMODE(st.st_mode) not in (0o700,0o755):raise ValueError('Runtime-owned non-writable credentials directory required')
token=safe(credentials/'editorial-pmo-token')