Repository navigation
Closed
Labels
area:ciCI/CD, GitHub Actions, workflowsarea:workflowDeveloper workflow, commands, rules, skillsbugSomething isn't workingeffort:smallLess than 1 hourpriority:highShould be done in the current milestonesemver:patchBug fix, backward-compatible
Description
Description
Repository Dispatch Listener fails in the deploy job after running installer from dispatch tag. The installer reports successful workspace initialization, but subsequent host-side file operations fail with Permission denied.
Steps to Reproduce
- Trigger
repository_dispatcheventsmoke-test-triggerinvig-os/devcontainer-smoke-testwith tag0.3.1-rc2. - Observe job
Deploy tag and open PR to dev, stepRun installer from dispatch tag. - Workflow runs:
curl -sSf "https://raw.githubusercontent.com/vig-os/devcontainer/${TAG}/install.sh" | bash -s -- --version "${TAG}" --smoke-test --force --docker .cp ".devcontainer/CHANGELOG.md" "CHANGELOG.md"
- Step fails with
Permission denied.
Expected Behavior
After installer execution, workspace files remain writable by the GitHub Actions runner so metadata copy, commit, and PR steps can continue.
Actual Behavior
Post-install, workspace writes fail:
mkdir: cannot create directory .../.devcontainer/.conf: Permission deniedcp: cannot create regular file 'CHANGELOG.md': Permission denied
Deploy job exits with code 1, downstream release/publish is skipped.
Environment
- OS: GitHub-hosted Ubuntu 22.04 runner
- Container Runtime: Docker (
--docker) - Image Version/Tag:
ghcr.io/vig-os/devcontainer:0.3.1-rc2 - Architecture: AMD64 (GitHub-hosted runner)
Additional Context
- Failing run: https://github.com/vig-os/devcontainer-smoke-test/actions/runs/23206472689/job/67443185534#step:6:361
- Suspected root cause: containerized initialization writes bind-mounted workspace with ownership/permissions not writable by runner user.
- Related to [FEATURE] Allow downstream release extension to pass assets and release notes to publish workflow #330
Acceptance Criteria
- Dispatch flow for RC tag completes deploy job without permission errors.
-
Run installer from dispatch tagcan write.devcontainer/.confand copy.devcontainer/CHANGELOG.mdto rootCHANGELOG.md. - Deploy branch and deploy PR creation steps run successfully.
- TDD compliance (see
.cursor/rules/tdd.mdc)
Possible Solution
Prefer installer-side ownership normalization for bind-mounted files (host UID/GID), or workflow-side ownership fix immediately after installer (e.g. chown -R "$(id -u):$(id -g)" .) before host writes.
Changelog Category
Fixed
Metadata
Metadata
Assignees
Labels
area:ciCI/CD, GitHub Actions, workflowsarea:workflowDeveloper workflow, commands, rules, skillsbugSomething isn't workingeffort:smallLess than 1 hourpriority:highShould be done in the current milestonesemver:patchBug fix, backward-compatible
Activity
fix(ci): normalize smoke-test workspace ownership after installer
fix(ci): probe changelog path writability before ownership repair
fix(ci): validate changelog source readability in deploy probe
fix(ci): normalize smoke-test workspace ownership after installer (#353)
chore: release 0.3.1 (#342)