-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
[TRIAGE] The bottle for $foo has an invalid build provenance attestation #177384
Comments
Thanks for the report @noelleleigh! Could you attempt to run the following for me locally?
...that should help me determine why the GitHub API call failed to authenticate here. |
In the mean time as well: you can disable this feature (it's in beta, but you're receiving it because you have developer mode enabled) by setting |
I had the same issue, and a It seems that the attestation-checking code is sensitive to a stale gh token in a way that other parts of Also the way the error surfaces isn't very helpful |
Agreed; we rolled this out to people with developer mode enabled to discover exactly these kinds of rough edges. I'll look into improving this error message. |
I encountered a similar error for the
Running I'm using the SSH git protocol if that makes a difference. |
Using SSH for @lblackstone could you run |
|
Thanks. That looks pretty close to what I have, so I don't think that's the source of problems here. It's possible that there's another (stale) credential elsewhere that Homebrew is giving priority to; I'll look into that. Edit: @lblackstone do you happen to have a different API credential configured via |
Ah, sure enough. It looks like my |
Yep, that'll do it. I'll look into improving the error message on that case as well. In the mean time, you should be able to re-enable attestations and delete that old env var (Homebrew will use your |
Sorry for the delay:
|
No problem, thanks for checking. Could you try running (This feature won't require this kind of auth flow once it's out of beta; you can leave the beta either by disabling Homebrew's developer mode or by explicitly setting |
This comment was marked as resolved.
This comment was marked as resolved.
That's unrelated, but thank you for raising it. You can use the same Edit: I've kicked off a rebottle for Edit 2: The rebottle has completed and |
After completing the |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
I use |
This comment was marked as resolved.
This comment was marked as resolved.
Performing a Thank you for the tip, @mmrwoods! |
|
Thanks @heuermh, I can confirm that the
I'm triggering a rebottle to fix it now. |
See Homebrew/homebrew-core#177384 (comment). Signed-off-by: William Woodruff <william@yossarian.net>
I'm facing this issue with Here the output when trying to install on macOS Monterey:
|
Thanks @andrioli. I can confirm this bug -- it looks like we accidentally skipped Edit: Dispatched: https://github.com/Homebrew/homebrew-core/actions/runs/10474173618 Edit 2: Rebottle failed due to an upstream checksum change. Triaging this with the upstream now. Edit 3: The bottle build has been corrected and the rebottle has completed. |
@maxbritto Please provide the full error you're seeing, like with other responses in this thread! It's much harder to triage the exact underlying cause if I don't know why the attestation failed. |
@woodruffw this is weird. There's any open issue to tackle this with upstream ? No new releases since 3 years: And the checksums for the last two versions didn't match
Compare with the values of this commit. Edit: Just wondering, maybe cgit is generating those source bundles (.tar.xz) at runtime and something changed there! |
@andrioli Yep -- see #181795 for the results of our triage on this. TL;DR the digest change was caused by a |
Sorry I removed my post a few seconds after posting it, you've been too fast :) I needed to upgrade gh ( |
A colleague ran into an issue running He received the message:
Deactivating our monorepo (i.e. removing the foreign Please let me know if more context would be helpful! |
@woodruffw Since this issue is still open, hoping you could take a look into
I've run OS version: macOS 12.6 (21G115)
|
I am seeing a 404 error installing lm-sensors:
|
Sorry for the delay here.
Thanks @tdsmith, this is useful! I'll look at making more fixes to the precedence of the discovered @jalavosus could you attempt to reproduce this again? I'm unable to reproduce this locally:
@laytan thanks, I can confirm that this one is missing an attestation. I'll dispatch a rebottle now. Edit: dispatched: https://github.com/Homebrew/homebrew-core/actions/runs/10704760272 Edit 2: Done. |
See Homebrew/homebrew-core#177384 (comment). Signed-off-by: William Woodruff <william@yossarian.net>
Hi, I'm getting this error when installing
I have refreshed my |
Thanks for the report @GV14982. I'm currently unable to reproduce this:
Could you confirm that your local |
Here is the output from running
And
|
Same problems here with libxml2, ripgrep, python@3.11, ollama, etc… (brew update & brew upgrade run)
|
@woodruffw thanks for all your work on this one. I didn't see the Lucass-MacBook:smarter rlucas$ brew install wget
==> Downloading https://ghcr.io/v2/homebrew/core/wget/manifests/1.24.5
Already downloaded: /Users/rlucas/Library/Caches/Homebrew/downloads/885bce6d1c81de373d8479681e3ccbb748be9eca29a8a3b3c95e6479a98458bd--wget-1.24.5.bottle_manifest.json
==> Fetching wget
==> Downloading https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:1b7e2f76c90553543a5e25dadf031c6fcfe280f52bf27d89e04006f9d33fd20b
Already downloaded: /Users/rlucas/Library/Caches/Homebrew/downloads/a69f6815965ac498390ce6a33fa2b0f3f67a970097aa33e329f401a79698e073--wget--1.24.5.ventura.bottle.tar.gz
==> Verifying attestation for wget
Error: The bottle for wget has an invalid build provenance attestation.
This may indicate that the bottle was not produced by the expected
tap, or was maliciously inserted into the expected tap's bottle
storage.
Additional context:
... output elided... I confirmed that I did not have a gh token set in my env vars and then did the HOMEBREW_NO_VERIFY_ATTESTATIONS=1 brew install wget and this works for me, Lucass-MacBook:~ rlucas$ gh auth status
github.com
✓ Logged in to github.com account rlucas7 (keyring)
- Active account: true
- Git operations protocol: ssh
- Token: gho_************************************
- Token scopes: 'admin:public_key', 'gist', 'read:org', 'repo'
Lucass-MacBook:~ rlucas$ HOMEBREW_NO_VERIFY_ATTESTATIONS=1 brew install wget
==> Downloading https://ghcr.io/v2/homebrew/core/wget/manifests/1.24.5
Already downloaded: /Users/rlucas/Library/Caches/Homebrew/downloads/885bce6d1c81de373d8479681e3ccbb748be9eca29a8a3b3c95e6479a98458bd--wget-1.24.5.bottle_manifest.json
==> Fetching wget
==> Downloading https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:1b7e2f76c90553543a5e25dadf031c6fcfe280f52bf27d89e04006f9d33fd20b
Already downloaded: /Users/rlucas/Library/Caches/Homebrew/downloads/a69f6815965ac498390ce6a33fa2b0f3f67a970097aa33e329f401a79698e073--wget--1.24.5.ventura.bottle.tar.gz
==> Pouring wget--1.24.5.ventura.bottle.tar.gz
🍺 /usr/local/Cellar/wget/1.24.5: 92 files, 4.5MB
==> Running `brew cleanup wget`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> `brew cleanup` has not been run in the last 30 days, running now...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). LMK if you need more info to help root cause things. |
Thanks @rlucas7. Could you please provide the logging information that you elided here? I need that information to triage this.
Edit: for context, I'm unable to reproduce this with the
|
yep, apologies for omitting here it is: Additional context:
attestation verification failed: Failure while executing; `/usr/bin/env GH_TOKEN=****** GH_HOST=github.com /usr/local/bin/gh attestation verify /Users/rlucas/Library/Caches/Homebrew/downloads/a69f6815965ac498390ce6a33fa2b0f3f67a970097aa33e329f401a79698e073--wget--1.24.5.ventura.bottle.tar.gz --repo Homebrew/homebrew-core --format json` exited with 1. Here's the output:
unknown command "attestation" for "gh"
Usage: gh <command> <subcommand> [flags]
Available commands:
alias
api
auth
browse
cache
co
codespace
completion
config
extension
gist
gpg-key
issue
label
org
pr
project
release
repo
ruleset
run
search
secret
ssh-key
status
variable
workflow In case you want/need this I'm using Lucass-MacBook:data rlucas$ gh --version
gh version 2.42.1 (2024-01-15)
https://github.com/cli/cli/releases/tag/v2.42.1
Lucass-MacBook:data rlucas$ Also FWIW I'm on ventura 13.6.7 |
Thanks, that's helpful! That looks like a case of your |
Yes. I already had installed via the Thanks @woodruffw 👍 bash stuff for posterityLucass-MacBook:1 rlucas$ brew uninstall wget Uninstalling /usr/local/Cellar/wget/1.24.5... (92 files, 4.5MB)Warning: The following may be wget configuration files and have not been removed! ==> Downloading https://ghcr.io/v2/homebrew/core/wget/manifests/1.24.5 This may indicate that the bottle was not produced by the expected Additional context: attestation verification failed: Failure while executing; Usage: gh [flags] Available commands: Lucass-MacBook:1 rlucas$ brew upgrade gh |
Have the same issue with I added notes to the closed issue above I was able to install by using |
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputbrew config
brew doctor
Verification
brew doctor
output saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
Upgrade nano from 8.0 to 8.1
What happened (include all command output)?
What did you expect to happen?
Install without error
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: