MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / detectOidcProvider

Function detectOidcProvider

packages/bumpy/src/core/publish-pipeline.ts:35–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 * - CircleCI: `CIRCLECI` + `NPM_ID_TOKEN`
34 */
35export function detectOidcProvider(): 'github-actions' | 'gitlab' | 'circleci' | null {
36 if (process.env.ACTIONS_ID_TOKEN_REQUEST_URL) return 'github-actions';
37 if (process.env.GITLAB_CI && process.env.NPM_ID_TOKEN) return 'gitlab';
38 if (process.env.CIRCLECI && process.env.NPM_ID_TOKEN) return 'circleci';
39 return null;
40}
41
42/**
43 * Returns true when OIDC trusted publishing is the only available npm auth path:

Callers 2

willUseOidcExclusivelyFunction · 0.85
setupNpmAuthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…