From 930edb31c9f55c600af9e596922b603721856e11 Mon Sep 17 00:00:00 2001 From: Robert B Gordon Date: Tue, 6 Oct 2026 10:00:57 -0500 Subject: [PATCH 1/2] fix: shorten action description for Marketplace (<125 chars) --- CHANGELOG.md | 2 ++ action.yml | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c49ed3d..255388a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## v1.0.1 +- `action.yml` description shortened to 110 characters; GitHub Marketplace + requires fewer than 125. - README: the API URL note now names only the public `https://.app.dstl8.ai` host. No change to the action's behavior. - Repository: SOC 2 change-management protection on `main` (pull request with one diff --git a/action.yml b/action.yml index 92a1610..d1f4a66 100644 --- a/action.yml +++ b/action.yml @@ -1,7 +1,5 @@ name: dstl8 code graph push -description: > - Extract your repository's code graph (log sites, symbols, services — metadata - only, never source) with the dstl8 CLI and push it to your Dstl8 org. +description: "Push your repository's code graph to Dstl8: log sites, symbols and services. Metadata only, never source code." author: ControlTheory branding: icon: share-2 From ad6bb17ce7b81bc240cfba4414ea1143f2796d76 Mon Sep 17 00:00:00 2001 From: Robert B Gordon Date: Tue, 6 Oct 2026 10:05:21 -0500 Subject: [PATCH 2/2] fix: dry-run names the branch on detached HEAD (pull_request checkouts) --- CHANGELOG.md | 3 +++ action.yml | 25 +++++++++++++------------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 255388a..2fe6052 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## v1.0.1 +- Fix: `dry-run` on a detached HEAD (every `pull_request` checkout) failed with + "detached HEAD, branch name unavailable". The branch is now taken from the event + for `dry-run` as well as for push. - `action.yml` description shortened to 110 characters; GitHub Marketplace requires fewer than 125. - README: the API URL note now names only the public `https://.app.dstl8.ai` diff --git a/action.yml b/action.yml index d1f4a66..c68c074 100644 --- a/action.yml +++ b/action.yml @@ -171,18 +171,6 @@ runs: [ -d "${IN_PATH}" ] || bail "path ${IN_PATH} does not exist (did you run actions/checkout?)" - if [ "${dry_run}" = "true" ]; then - echo "dstl8-codegraph${label}: ${tag} (${os}/${arch}) dry run, nothing will be uploaded" - artifact="${work}/dstl8-codegraph.json" - if ! ( cd "${IN_PATH}" && env -u DSTL8_API_URL -u DSTL8_API_TOKEN \ - "${bin}" graph build -o "${artifact}" ${extra[@]+"${extra[@]}"} ); then - bail "graph build failed" - fi - out status dry-run - out artifact-path "${artifact}" - exit 0 - fi - # dstl8 refuses a detached HEAD unless told the branch; checkouts of a # sha or a pull_request merge ref are detached. Name the branch from # the event unless extra-args already does. @@ -202,6 +190,19 @@ runs: esac fi + if [ "${dry_run}" = "true" ]; then + echo "dstl8-codegraph${label}: ${tag} (${os}/${arch}) dry run, nothing will be uploaded" + artifact="${work}/dstl8-codegraph.json" + if ! ( cd "${IN_PATH}" && env -u DSTL8_API_URL -u DSTL8_API_TOKEN \ + "${bin}" graph build -o "${artifact}" \ + ${branch_args[@]+"${branch_args[@]}"} ${extra[@]+"${extra[@]}"} ); then + bail "graph build failed" + fi + out status dry-run + out artifact-path "${artifact}" + exit 0 + fi + echo "dstl8-codegraph${label}: ${tag} (${os}/${arch}) -> ${DSTL8_API_URL}" res="$(cd "${IN_PATH}" && "${bin}" graph push --json \ ${branch_args[@]+"${branch_args[@]}"} ${extra[@]+"${extra[@]}"})"