Skip to content

Commit 92c6ffb

Browse files
committed
chore(actions): pin to @main + add diagnostic to checkout action — chase ext-tools 404
The "external-tools.json not found" error fires from both the checkout and setup composite actions. fce50ac added a diagnostic ls to setup/action.yml; this commit adds the same to checkout/action.yml so both lookup paths print their runtime GITHUB_ACTION_PATH state. To get the diagnostic to actually FIRE on the next CI run, the workflow needs to invoke action versions that include the diagnostic. The SHA pins in the fleet point at OLD versions (no diagnostic). Temporarily pin `_local-not-for-reuse-ci.yml`'s setup-and-install to @main, and the inner setup-and-install/action.yml's checkout + setup pins to @main, so the next push lands the diagnostic code in CI. Will revert to SHA pins once the path-resolution issue is fixed. Pre-commit lint/test bypassed via DISABLE_PRECOMMIT_* — local SOCKET_API_KEY in a 401 state. User-authorized via 'Allow lint bypass'.
1 parent 4ced215 commit 92c6ffb

3 files changed

Lines changed: 19 additions & 3 deletions

File tree

.github/actions/checkout/action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,17 @@ runs:
5353
if [ ! -f "$TOOLS_FILE" ]; then
5454
echo "× socket-registry checkout action is broken: external-tools.json not found at ${TOOLS_FILE}." >&2
5555
echo " This is a packaging bug in SocketDev/socket-registry, not a consumer issue. File a bug." >&2
56+
echo "" >&2
57+
echo " Diagnostics — what's actually present at runtime:" >&2
58+
echo " GITHUB_ACTION_PATH=${GITHUB_ACTION_PATH}" >&2
59+
echo " ls -la \"\${GITHUB_ACTION_PATH}\":" >&2
60+
ls -la "${GITHUB_ACTION_PATH}" 2>&1 | sed 's/^/ /' >&2 || true
61+
echo " ls -la \"\${GITHUB_ACTION_PATH}/..\" (parent — should be .github/actions/):" >&2
62+
ls -la "${GITHUB_ACTION_PATH}/.." 2>&1 | sed 's/^/ /' >&2 || true
63+
echo " ls -la \"\${GITHUB_ACTION_PATH}/../..\" (grandparent — should be .github/):" >&2
64+
ls -la "${GITHUB_ACTION_PATH}/../.." 2>&1 | sed 's/^/ /' >&2 || true
65+
echo " ls -la \"\${GITHUB_ACTION_PATH}/../../..\" (great-grandparent — should be repo root):" >&2
66+
ls -la "${GITHUB_ACTION_PATH}/../../.." 2>&1 | sed 's/^/ /' >&2 || true
5667
exit 1
5768
fi
5869
# Read JSON values via lib/jq.mjs. See setup/action.yml for

.github/actions/setup-and-install/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ runs:
7171
steps:
7272
- name: Checkout
7373
if: inputs.checkout == 'true'
74-
uses: SocketDev/socket-registry/.github/actions/checkout@64eb126e90301045eb095cf18f8050db3ff358a2 # main (2026-05-15)
74+
uses: SocketDev/socket-registry/.github/actions/checkout@main # diagnostic (2026-05-18)
7575
with:
7676
fetch-depth: ${{ inputs.checkout-fetch-depth }}
7777
ref: ${{ inputs.checkout-ref }}
7878
working-directory: ${{ inputs.working-directory }}
7979

8080
- name: Setup environment
81-
uses: SocketDev/socket-registry/.github/actions/setup@60ba2612776f9d9c6d63fb24fdac4cd9991e505d # main (2026-05-15)
81+
uses: SocketDev/socket-registry/.github/actions/setup@main # diagnostic (2026-05-18)
8282
with:
8383
debug: ${{ inputs.debug }}
8484
node-version: ${{ inputs.node-version }}

.github/workflows/_local-not-for-reuse-ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ jobs:
3030
runs-on: ubuntu-latest
3131
timeout-minutes: 15
3232
steps:
33-
- uses: SocketDev/socket-registry/.github/actions/setup-and-install@56be73d6881212e642f35a3cd165e27cb1c09aef # main (2026-05-15)
33+
# TEMPORARY: pin to `main` instead of a SHA so the diagnostic
34+
# `ls -la` block added in setup/action.yml + checkout/action.yml
35+
# actually runs (the old SHA-pinned setup-and-install@56be73d6
36+
# doesn't have the diagnostic yet). Revert to a stable SHA
37+
# once external-tools.json path resolution is fixed.
38+
- uses: SocketDev/socket-registry/.github/actions/setup-and-install@main # diagnostic (2026-05-18)
3439
with:
3540
node-version: 22
3641

0 commit comments

Comments
 (0)