| 12345678910111213 |
- import { resolveSourceProvenanceEnabled } from '@mavis/shared/source-provenance';
- /** Local product ownership is supplied by the host, never inferred from env. */
- export function isLocalSourceProvenanceEnabled(
- runtimeOwnerKind: string | undefined,
- env: NodeJS.ProcessEnv = process.env,
- ): boolean {
- return resolveSourceProvenanceEnabled({
- platform: runtimeOwnerKind,
- internalBuild: env.__MAVIS_BUILD_INTERNAL === 'true',
- insideBuild: env.__MAVIS_BUILD_INSIDE === 'true',
- });
- }
|