molecule-ci/.github/workflows
Hongming Wang a5212a349b fix(publish-template-image): chmod a+rX + drop :ro so agent can read /configs
Hot-fix for #2275 Phase 2 — the boot smoke step in v1@3c8f8fe failed
on every template publish with `PermissionError: [Errno 13] Permission
denied: '/configs/config.yaml'` because `mktemp -d` creates the dir
with mode 700 and `chmod -R go+r` adds 'r' to files but doesn't add
'x' to directories. Inside the image the entrypoint drops priv to
uid 1000 (agent), which then cannot traverse /configs to even reach
config.yaml — main.py exits before any executor code runs.

Two changes:
1. `chmod -R a+rX` (capital X) adds 'x' to directories AND already-
   executable files, so the temp dir becomes traversable for agent
   while config.yaml stays a regular world-readable file.
2. Drop `:ro` on the mount so the entrypoint's `chown -R agent
   /configs` succeeds. The container is ephemeral; modifications to
   the host mktemp dir don't matter and the dir gets nuked right
   after the smoke run.

Reproduced + diagnosed against claude-code publish run 25202651546
which failed within a few seconds on Path('/configs/config.yaml').exists()
in molecule_runtime/config.py:298.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-30 21:49:26 -07:00
..
auto-promote-branch.yml docs: recommend @v1 over @main in reusable-workflow adoption snippets (#16) 2026-04-28 11:14:12 -07:00
auto-promote-staging-pr.yml docs: pin reusable-workflow examples from @main to @v1 (P133) 2026-04-30 01:04:06 -07:00
auto-promote-staging.yml docs: recommend @v1 over @main in reusable-workflow adoption snippets (#16) 2026-04-28 11:14:12 -07:00
disable-auto-merge-on-push.yml docs: recommend @v1 over @main in reusable-workflow adoption snippets (#16) 2026-04-28 11:14:12 -07:00
publish-template-image.yml fix(publish-template-image): chmod a+rX + drop :ro so agent can read /configs 2026-04-30 21:49:26 -07:00
validate-org-template.yml fix(validate): fetch validator scripts from molecule-ci instead of expecting them in caller 2026-04-29 01:56:25 -07:00
validate-plugin.yml fix(validate): fetch validator scripts from molecule-ci instead of expecting them in caller 2026-04-29 01:56:25 -07:00
validate-workspace-template.yml ci: lock down validate-workspace-template against fork-PR untrusted code (P135) 2026-04-30 01:07:58 -07:00