Skip to content

Commit f43a6a9

Browse files
authored
chore(provenance): drop publish-without-sfw escape hatch (#1253)
The escape hatch renamed sfw shims to *.disabled around publish steps, from before the firewall had a 'bypass' registry kind. With sfw-enterprise now live (SOCKET_API_TOKEN), bypass covers github.com, codeload, and the release-asset CDNs — publish flows don't need to strip shims anymore. - Drop publish-without-sfw input declaration. - Drop the 'Strip sfw shims for publishing' step. - Drop the 'Restore sfw shims after publishing' step. Mirrors socket-registry d638c11f.
1 parent 877eca6 commit f43a6a9

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

.github/workflows/provenance.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ on:
1616
options:
1717
- '0'
1818
- '1'
19-
publish-without-sfw:
20-
description: 'Publish directly to npm, bypassing Socket firewall shims'
21-
required: false
22-
default: false
23-
type: boolean
2419

2520
permissions:
2621
contents: read
@@ -205,19 +200,6 @@ jobs:
205200
- name: Install dependencies
206201
run: pnpm install --loglevel error
207202

208-
- name: Strip sfw shims for publishing
209-
if: inputs.publish-without-sfw == true
210-
run: |
211-
echo "Bypassing Socket firewall shims for publishing"
212-
# Rename shim files so real binaries resolve from PATH.
213-
# Writing PATH to GITHUB_ENV doesn't work because GITHUB_PATH
214-
# entries are prepended by the runner after GITHUB_ENV is applied.
215-
if [ -n "$SFW_SHIM_DIR" ] && [ -d "$SFW_SHIM_DIR" ]; then
216-
for SHIM in "$SFW_SHIM_DIR"/*; do
217-
[ -f "$SHIM" ] && mv "$SHIM" "${SHIM}.disabled"
218-
done
219-
fi
220-
221203
- run: INLINED_SOCKET_CLI_PUBLISHED_BUILD=1 pnpm run build:dist
222204
- run: npm publish --provenance --access public --tag "${NPM_DIST_TAG}"
223205
continue-on-error: true
@@ -243,11 +225,3 @@ jobs:
243225
NPM_DIST_TAG: ${{ inputs.dist-tag }}
244226
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # zizmor: ignore[secrets-outside-env]
245227
SOCKET_CLI_DEBUG: ${{ inputs.debug }}
246-
- name: Restore sfw shims after publishing
247-
if: inputs.publish-without-sfw == true && always()
248-
run: |
249-
if [ -n "$SFW_SHIM_DIR" ] && [ -d "$SFW_SHIM_DIR" ]; then
250-
for SHIM in "$SFW_SHIM_DIR"/*.disabled; do
251-
[ -f "$SHIM" ] && mv "$SHIM" "${SHIM%.disabled}"
252-
done
253-
fi

0 commit comments

Comments
 (0)