Isolate PMO credential from existing differently owned credentials directory
Deploy Canina / deploy (push) Successful in 4m30s
Deploy Canina / deploy (push) Successful in 4m30s
This commit is contained in:
1 parent
7485c89e9b
commit
ba0aa5ee4e
4 files changed
+8
-6
No files matched your search
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user