Skip to content

chore(scripts): add cloudflare-client to npm trusted-publisher PACKAGES - #1723

Merged
solaris007 merged 1 commit into
mainfrom
chore/oidc-trust-cloudflare-client
Jun 25, 2026
Merged

chore(scripts): add cloudflare-client to npm trusted-publisher PACKAGES#1723
solaris007 merged 1 commit into
mainfrom
chore/oidc-trust-cloudflare-client

Conversation

@solaris007

Copy link
Copy Markdown
Member

1. Abstract

Adds @adobe/spacecat-shared-cloudflare-client to the PACKAGES array in scripts/setup-npm-trusted-publishers.sh so the npm OIDC trusted-publisher setup script recognises it and its forward-drift check passes.

2. Reasoning

spacecat-shared-cloudflare-client was introduced in #1720 as a publishable package but was never added to the PACKAGES array the trusted-publisher setup script audits. That script's forward-drift check fails closed when a publishable workspace package is missing from PACKAGES, so leaving it out would abort the next trusted-publisher setup/verify run. This is the same onboarding step already done for the other client packages.

3. High-level overview of the changes

One-line addition to a release-tooling array - no application code, no package release.

  • scripts/setup-npm-trusted-publishers.sh: @adobe/spacecat-shared-cloudflare-client added to PACKAGES, alphabetically between cloud-manager-client and content-client. After this the script's drift check sees zero forward drift and the package is covered by trusted-publisher registration/audit.

No behaviour change for any running service.

4. Required information

6. Additional information outside the code

Done this session, out of band from this PR (the OIDC bootstrap proper):

  • First publish: @adobe/spacecat-shared-cloudflare-client@1.0.0 manually published to npmjs.org (OIDC cannot bootstrap a name that does not yet exist on npm). Verified via the version-specific manifest and the tarball (both 200).
  • Trust binding: GitHub Actions trusted publisher registered for the package on npmjs.com - {repository: adobe/spacecat-shared, workflow: main.yaml, environment: npm-publish} - matching the other packages.
  • Drift check: ran the setup script's publishable-workspace enumeration against the edited PACKAGES array - no forward drift, no stale entries.

7. Test plan

(a) Local: replicated the setup script's drift check (node enumeration of publishable workspace packages diffed against PACKAGES) - clean in both directions.

(b) On merge: no package release is triggered - the commit touches scripts/, not any packages/<pkg> source, so semantic-release does not cut a version. The next run of setup-npm-trusted-publishers.sh now has cloudflare-client in scope. The package's first OIDC release happens on the next merge to main touching its source, publishing with no npm token.

The cloudflare-client package (added in #1720) is publishable but was missing
from the PACKAGES array in setup-npm-trusted-publishers.sh, which would trip the
script's forward-drift check. Add it alphabetically alongside the other clients.
@solaris007 solaris007 self-assigned this Jun 25, 2026
@solaris007 solaris007 added the documentation Improvements or additions to documentation label Jun 25, 2026
@solaris007
solaris007 merged commit 9b5592f into main Jun 25, 2026
3 of 4 checks passed
@solaris007
solaris007 deleted the chore/oidc-trust-cloudflare-client branch June 25, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant