Repository navigation
fix(dde): reference setup-dde via full repo path in project-up - #93
Merged
Merged
Conversation
`uses: ./.github/actions/setup-dde` from inside project-up's composite action resolves against the caller's GITHUB_WORKSPACE, not against the sbaerlocher/.github checkout — the previous comment claiming otherwise was wrong (see actions/runner#2185). The action worked in this repo's self-test only because actions/checkout happens to land sbaerlocher/.github into the workspace. From any other consumer (e.g. sbaerlocher/savvy) the runner aborts with `Can't find 'action.yml' under .../setup-dde`. Reference setup-dde via the full versioned path `sbaerlocher/.github/.github/actions/setup-dde@<DATE-TAG>` so consumers get a coherent bundle. renovate.json: extend the github-actions managerFilePatterns to also match `actions/<name>/action.yml`. The previous pattern was workflow-only, so the new cross-repo pin in `project-up/action.yml` would have rotted silently as new date tags were cut. AGENTS.md: collapse the composite-action and reusable-workflow notes into one accurate paragraph; call out test-actions-dde.yml as the one place `./...` is safe; note that the full-path pin trades a bit of test fidelity — `smoke-project-up-*` now exercises the tagged setup-dde, not the in-PR copy. Signed-off-by: Simon Bärlocher <[email protected]>
sbaerlocher
force-pushed
the
fix/project-up-uses-full-path
branch
from
April 29, 2026 23:10
2c6e34b to
e1d5f8d
Compare
Owner
Author
|
Review-Comments alle adressiert (force-push):
|
sbaerlocher
added a commit
that referenced
this pull request
Apr 30, 2026
`setup-dde` was wrapping `dde system:install` in `sudo --preserve-env=HOME,USER,...`, but the upstream README runs the command unprivileged (`dde system:install`). dde escalates internally for the individual steps that actually need root — mkcert CA install and the DNS resolver tweak — using passwordless sudo, which GitHub-hosted runners provide. Wrapping the whole command in `sudo` had two side effects we no longer want: 1. State files written under $HOME/.dde end up root-owned. The next unprivileged `dde project:up` then fails with `Permission denied` when trying to overwrite the generated dnsmasq config — observed in sbaerlocher/savvy#102 once the action-resolution bug fixed in #93 stopped masking it. 2. The --preserve-env workaround for HOME/USER/DDE_CONFIG_DIR/ DDE_DATA_DIR exists only because of the sudo wrap; dropping the wrap drops the workaround. Update the input description so callers know what dde needs from the host (Docker + passwordless sudo for dde's internal calls), and add a short comment explaining why this step is intentionally not under sudo. Signed-off-by: Simon Bärlocher <[email protected]>
2 tasks
sbaerlocher
added a commit
that referenced
this pull request
Apr 30, 2026
`setup-dde` was wrapping `dde system:install` in `sudo --preserve-env=HOME,USER,...`, but the upstream README runs the command unprivileged (`dde system:install`). dde escalates internally for the individual steps that actually need root — mkcert CA install and the DNS resolver tweak — using passwordless sudo, which GitHub-hosted runners provide. Wrapping the whole command in `sudo` had two side effects we no longer want: 1. State files written under $HOME/.dde end up root-owned. The next unprivileged `dde project:up` then fails with `Permission denied` when trying to overwrite the generated dnsmasq config — observed in sbaerlocher/savvy#102 once the action-resolution bug fixed in #93 stopped masking it. 2. The --preserve-env workaround for HOME/USER/DDE_CONFIG_DIR/ DDE_DATA_DIR exists only because of the sudo wrap; dropping the wrap drops the workaround. Update the input description so callers know what dde needs from the host (Docker + passwordless sudo for dde's internal calls), and add a short comment explaining why this step is intentionally not under sudo. Signed-off-by: Simon Bärlocher <[email protected]>
sbaerlocher
added a commit
that referenced
this pull request
Apr 30, 2026
`setup-dde` was wrapping `dde system:install` in `sudo --preserve-env=HOME,USER,...`, but the upstream README runs the command unprivileged (`dde system:install`). dde escalates internally for the individual steps that actually need root — mkcert CA install and the DNS resolver tweak — using passwordless sudo, which GitHub-hosted runners provide. Wrapping the whole command in `sudo` had two side effects we no longer want: 1. State files written under $HOME/.dde end up root-owned. The next unprivileged `dde project:up` then fails with `Permission denied` when trying to overwrite the generated dnsmasq config — observed in sbaerlocher/savvy#102 once the action-resolution bug fixed in #93 stopped masking it. 2. The --preserve-env workaround for HOME/USER/DDE_CONFIG_DIR/ DDE_DATA_DIR exists only because of the sudo wrap; dropping the wrap drops the workaround. Update the input description so callers know what dde needs from the host (Docker + passwordless sudo for dde's internal calls), and add a short comment explaining why this step is intentionally not under sudo. Signed-off-by: Simon Bärlocher <[email protected]>
2 tasks
sbaerlocher
added a commit
that referenced
this pull request
Apr 30, 2026
CHANGELOG.md: add the action-resolution fix shipped in #93 to the 2026-04-30 release. Both fixes (#93 and #95) are merged into a single `### Fixed` block placed after `### Changed (BREAKING)`, matching the Keep-a-Changelog conventional ordering. The 2026-04-30 release block now reads: rename (BREAKING), then the two fixes. README.md / AGENTS.md: bump the "Last updated" markers from 2026-04-28 to 2026-04-30. The AGENTS.md `Version` field is left at 1.3.0 — its meaning (doc-scoped semver vs. release marker) is unresolved and shouldn't be decided in a docs-bump PR; tracked as a follow-up. Signed-off-by: Simon Bärlocher <[email protected]>
sbaerlocher
added a commit
that referenced
this pull request
Apr 30, 2026
CHANGELOG.md: add the action-resolution fix shipped in #93 to the 2026-04-30 release. Both fixes (#93 and #95) are merged into a single `### Fixed` block placed after `### Changed (BREAKING)`, matching the Keep-a-Changelog conventional ordering. The 2026-04-30 release block now reads: rename (BREAKING), then the two fixes. README.md / AGENTS.md: bump the "Last updated" markers from 2026-04-28 to 2026-04-30. The AGENTS.md `Version` field is left at 1.3.0 — its meaning (doc-scoped semver vs. release marker) is unresolved and shouldn't be decided in a docs-bump PR; tracked as a follow-up. Signed-off-by: Simon Bärlocher <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
project-upcomposite action now referencessetup-ddevia the fullversioned path
sbaerlocher/.github/.github/actions/setup-dde@2026-04-28instead of the relative
./.github/actions/setup-dde.uses: ./...always resolves againstthe caller's
GITHUB_WORKSPACE, both inside reusable workflows andcomposite actions (the previous claim that composite actions were
different was wrong — see actions/runner#2185).
Why
Consumer repositories like
sbaerlocher/savvywere failing with:
The relative
./...was being resolved against the caller's workspace(
savvy), not against the action's own repo. The self-test(
test-actions-dde.yml) didn't catch this because it's a regularworkflow that does
actions/checkoutofsbaerlocher/.githubfirst,so the workspace coincidentally contains the
setup-ddedirectory.Follow-ups
refs (
@2026-04-28) point at a workingproject-up.sbaerlocher/.githubpackage rule.Test plan
setup-ddeandproject-upsmoke jobs in the same workflow run).savvy E2E job
and confirm
setup-dderesolves.