Skip to content

CI: don't persist checkout credentials; note about npm publishing - #2702

Merged
chalin merged 7 commits into
docsy:mainfrom
chalin:chalin-m24-d3-persist-credentials-2026-0808
Aug 8, 2026
Merged

chalin merged 7 commits into
docsy:mainfrom
chalin:chalin-m24-d3-persist-credentials-2026-0808

Conversation

@chalin

@chalin chalin commented Aug 8, 2026 •

Copy link
Copy Markdown
Collaborator
  • Credential isolation: adds persist-credentials: false to both workflows' checkout steps, so the built-in token is no longer persisted into the checkout's .git config where dependency-controlled steps could read it
    • Both workflows already declare only top-level contents: read; no token is directly passed to any run step (pinned actions/setup-node still takes the default github.token for its version-manifest lookup)
  • Maintainer notes: documents a narrow npm publish auth window until trusted publishing is adopted (npm login right before publishing, npm logout right after even on a failed publish, manual token revocation as the fallback)
  • netlify.toml: comment clarifications only
  • Preview(s):

chalin added 3 commits August 8, 2026 08:35
- Adds `persist-credentials: false` to both workflows' checkout steps so the built-in token never reaches dependency-controlled steps via .git config
…t rewordings

- Recovers post-docsy#2700 stash: interim login-publish-logout guidance ahead of trusted publishing, plus netlify.toml comment clarifications
@chalin
chalin marked this pull request as ready for review August 8, 2026 16:21
@chalin chalin added the CI/infra CI & infrastructure label Aug 8, 2026
- Qualifies the login-publish-logout bullet as pre-trusted-publishing guidance, so it self-retires when OIDC publishing lands (review feedback)
@chalin chalin changed the title CI: don't persist checkout credentials CI: don't persist checkout credentials; note narrow npm publish window Aug 8, 2026
@chalin chalin changed the title CI: don't persist checkout credentials; note narrow npm publish window CI: don't persist checkout credentials; note about npm publishing Aug 8, 2026
chalin added 3 commits August 8, 2026 12:37
- Adds the trusted-publishing URL to .lycheecache (single genuine lychee 0.24.2 probe, renormalized), un-redding the Linux test job's pristine-tree guard
- Logout applies on failed publishes too, with account-settings revocation as the fallback (adversarial-review findings)
@chalin
chalin merged commit cbe3fad into docsy:main Aug 8, 2026
16 checks passed
@chalin
chalin deleted the chalin-m24-d3-persist-credentials-2026-0808 branch August 8, 2026 17:22
chalin added a commit to chalin/docsy that referenced this pull request Aug 12, 2026
Prove from the committed manifests, locks, .npmrc, and workflows alone
that the hardening invariants (docsy#2700, docsy#2702, docsy#2712) still hold: registry
+ integrity coverage, non-registry allowlist, campaign IOC denylist,
install-script inventory with a lock-matching allowScripts pin, locked
script-free install commands, and credential-isolated workflow installs.
Wired into test:full via _test:full:post.
@chalin chalin added this to the 0.17.0 milestone Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/infra CI & infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant