We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be4919c commit 43e35d0Copy full SHA for 43e35d0
semantic_release/cli/config.py
@@ -568,15 +568,15 @@ def from_raw_config( # noqa: C901
568
)
569
570
# changelog_file
571
- changelog_file = Path(raw.changelog.changelog_file).resolve()
+ changelog_file = Path(raw.changelog.changelog_file).expanduser().resolve()
572
573
# Prevent path traversal attacks
574
if raw.repo_dir not in changelog_file.parents:
575
raise InvalidConfiguration(
576
"Changelog file destination must be inside of the repository directory."
577
578
579
- template_dir = (raw.repo_dir / raw.changelog.template_dir).resolve()
+ template_dir = Path(raw.changelog.template_dir).expanduser().resolve()
580
581
582
if raw.repo_dir not in template_dir.parents:
0 commit comments