Skip to content
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

dev-cmd: add brew verify #19217

Merged
merged 7 commits into from
Feb 4, 2025
Merged

dev-cmd: add brew verify #19217

merged 7 commits into from
Feb 4, 2025

Conversation

woodruffw
Copy link
Member

@woodruffw woodruffw commented Feb 3, 2025

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew style with your changes locally?
  • Have you successfully run brew typecheck with your changes locally?
  • Have you successfully run brew tests with your changes locally?

This is a direct copy of trailofbits/homebrew-brew-verify,
but in the DevCmd namespace instead.

Signed-off-by: William Woodruff [email protected]

This is a direct copy of `trailofbits/homebrew-brew-verify`,
but in the `DevCmd` namespace instead.

Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
dduugg
dduugg previously requested changes Feb 3, 2025
Copy link
Member

@dduugg dduugg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woodruffw and others added 3 commits February 3, 2025 17:08
Co-authored-by: Douglas Eichelberger <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
@woodruffw
Copy link
Member Author

Thanks! I'll add some tests in a bit!

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good when we have tests!

Signed-off-by: William Woodruff <[email protected]>
@woodruffw
Copy link
Member Author

I've added a basic "behaves like" test similar to the other dev-cmd specs. I'm not sure about how best to test this command more deeply, though -- we test the underlying API it calls pretty extensively in the attestations spec, but doing so requires a lot of extensive mocking (since we shell out to gh) 😅

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me, thanks again @woodruffw!

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Feb 4, 2025
Merged via the queue into master with commit 510a150 Feb 4, 2025
28 checks passed
@MikeMcQuaid MikeMcQuaid deleted the ww/brew-verify branch February 4, 2025 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants