test: parameterize provenance-file precedence regression test · npm/cli@6907480 · GitHub
Skip to content

Commit 6907480

Browse files
committed
test: parameterize provenance-file precedence regression test
Cover both config sources for the provenance-file precedence regression without duplicating the test body: the CLI config case exercises the existing path through the config layer, and the publishConfig case exercises Publish.#getManifest() and its flatten(filteredPublishConfig, opts) call, which runs before oidc() decides whether to auto-enable provenance. The publishConfig case proves the value reaches opts.provenanceFile, the OIDC token exchange still occurs, automatic generation stays off, and the supplied bundle is verified and published byte-for-byte with sigstore.attest() never called. Signed-off-by: Yunseo Kim <git@yunseo.kim>
1 parent 71f3f48 commit 6907480

1 file changed

Lines changed: 138 additions & 105 deletions

File tree

‎test/lib/commands/publish.js‎

Lines changed: 138 additions & 105 deletions

0 commit comments

Comments
 (0)