ci: restore provenance.yml publish workflow on main#1410
Merged
John-David Dalton (jdalton) merged 1 commit intoJul 10, 2026
Merged
Conversation
The v2 monorepo cascade (f6165b0, "chore(ci): land 3 ci changes") removed .github/workflows/provenance.yml from main. Because main is the default branch, that de-registered the "Publish to npm registry" workflow from the Actions UI (no sidebar entry, no Run button) and prune-workflow-runs.yml is wiping its run history. That workflow is still the only publisher for the socket 1.1.x line (current npm latest) shipped from v1.x. Restore the file verbatim from v1.x so the workflow re-registers and is dispatchable again. Dispatch it selecting the v1.x branch as the ref.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Collaborator
|
Ah yes, migrating to a npm-publish.yml workflow but until it is up solid lets keep the old. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The "📦 Publish to npm registry" workflow (
.github/workflows/provenance.yml) has disappeared from the Actions UI, so thesocket1.1.x line can no longer be published from the sidebar.Root cause: commit
f6165b07e("chore(ci): land 3 ci changes", part of the v2 monorepo cascade landed onmainon 2026-07-09) removedprovenance.ymlfrommain. Becausemainis the default branch, GitHub only registers/surfaces workflows that exist there — so removing it:prune-workflow-runs.ymleligible to wipe all of its run history (it deletes all runs for workflows whose source is gone from the default branch).That workflow is still the only publisher for the
socket1.1.x line — currentlysocket@latest = 1.1.140on npm, shipped from thev1.xbranch. The two publish workflows now onmain(npm-publish.yml,publish-npm.yml) belong to the v2socket-cli-monorepoand do not publish the 1.1.x line.Change
Restore
.github/workflows/provenance.ymlonmain, verbatim fromv1.x. This re-registers the workflow so it reappears in the Actions UI with a working "Run workflow" button.How to use after merge
Dispatch "📦 Publish to npm registry" and select the
v1.xbranch as the ref (the run uses the workflow definition and code from the selected ref). Themaincopy exists only so GitHub registers/surfaces the workflow.Note — this is a stopgap
The removal came from the automated fleet/template cascade. Unless the cascade template is updated to keep this file (or the team decides on a different publishing path for the 1.1.x line while v2 isn't yet
latest), a future cascade may drop it again. Flagging separately to John-David Dalton (@jdalton).Note
Medium Risk
Restores release automation that uses NPM OIDC/token publishing and can create git tags; operational risk if dispatched against the wrong ref, but logic is an unchanged restore from
v1.x.Overview
Re-adds
.github/workflows/provenance.ymlonmainso GitHub registers “Publish to npm registry” again in the Actions UI (workflows on the default branch only). The file matches thev1.xcopy; after merge, operators should dispatch it with thev1.xref so builds and publishes still use the 1.1.x line.The restored workflow is the manual build → npm publish (with provenance) path for the
socket/ legacy / Sentry dist variants, plus idempotentv<version>tagging when the primarysocketpublish succeeds. It does not change application code—only brings back the workflow definition that was removed frommainduring the v2 CI cascade.Reviewed by Cursor Bugbot for commit f9385b7. Configure here.