-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
json file missing #301
Comments
/cc asraa |
FWIW: Here is a GHA run where we encounter the issue: https://github.com/slsa-framework/slsa-github-generator/actions/runs/4180524822/jobs/7241595353 /cc @asraa |
This seems like a similar problem to the rekor.pub being distributed - for Ian and Laurent - this file is likely the initial trusted root after which the Rekor/Fulcio key material is fetched from |
I think this is where it is being read: Line 63 in 6ccf8d0
There's a small indirection here that probably made codesearch hard. The |
Thanks Asra, indeed I just did a lazy The fix for the rekor.pub was to use I wonder whether the dynamic name makes Line 46 in 6ccf8d0
|
Haven't used After I ran const mapSrc = __nccwpck_require__.ab + "map.json"; while the statement for the "public-good-instance-root.json" was left as: const tufRootSrc = require.resolve(`../../store/${name}-root.json`); Definitely open to suggestions for how to make this more |
Based on vercel/ncc#74 (comment) we might have better luck with ncc static analysis if the require took the following form. I guess it then could know that anything under const tufRootFile = `${name}-root.json`
const tufRootSrc = require.resolve(`../../store/' + tufRootFile); |
New version published: https://github.com/sigstore/sigstore-js/releases/tag/v1.1.1 |
I get this error when using the library and
ncc
to compile my project:::error::Cannot find module '../../store/public-good-instance-root.json'
Problem with tuf-js?
Any pointers? happy to send a PR, but I'm not sure where this file is looked up.
The text was updated successfully, but these errors were encountered: