From 24e0ac07424df501f609216a206fdaa3cc4c1f32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20St=C3=B6ckli?= Date: Tue, 15 Sep 2026 13:33:07 +0000 Subject: [PATCH 1/2] fix: create missing workflows folder --- scripts/create_repo.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/create_repo.sh b/scripts/create_repo.sh index 0e5e5a3..9e6ed14 100755 --- a/scripts/create_repo.sh +++ b/scripts/create_repo.sh @@ -35,6 +35,7 @@ cd new-taskflows-repo cp -r "$SECLAB_TASKFLOWS/.devcontainer" . cp "$SECLAB_TASKFLOWS/CODE_OF_CONDUCT.md" . cp "$SECLAB_TASKFLOWS/.gitignore" . +mkdir -p .github/workflows cp "$SECLAB_TASKFLOWS/.github/workflows/publish-to-pypi.yaml" .github/workflows/ cp "$SECLAB_TASKFLOWS/.github/workflows/publish-to-testpypi.yaml" .github/workflows/ From 13669084ecdda3a89a493a44967b88c330b9a1f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20St=C3=B6ckli?= Date: Tue, 15 Sep 2026 13:42:32 +0000 Subject: [PATCH 2/2] fix: detect sed version in use (macOS uses BSD sed by default) --- scripts/create_repo.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/create_repo.sh b/scripts/create_repo.sh index 9e6ed14..d9b018e 100755 --- a/scripts/create_repo.sh +++ b/scripts/create_repo.sh @@ -41,7 +41,15 @@ cp "$SECLAB_TASKFLOWS/.github/workflows/publish-to-testpypi.yaml" .github/workfl # Replace any occurrences of "seclab-taskflows" with the correct project name. PROJECT_NAME="$(hatch project metadata name)" -find . -type f -exec sed -i "s/seclab-taskflows/$PROJECT_NAME/g" {} \; +# detect whether GNU sed or BSD sed (macOS) is being used +if sed --version 2>/dev/null | grep -q "GNU sed"; then + SED_IN_PLACE=(-i) +else + SED_IN_PLACE=(-i '') +fi + +find . -type f -exec sed "${SED_IN_PLACE[@]}" \ + "s/seclab-taskflows/$PROJECT_NAME/g" {} \; # Get the path to the source code. (Usually something like "src/my_project") SRCDIR="$(dirname $(find . -name __about__.py))"