Skip to content

audit: add new homebrew/core audits#6916

Merged
jonchang merged 3 commits intoHomebrew:masterfrom
jonchang:new-audits
Jan 11, 2020
Merged

audit: add new homebrew/core audits#6916
jonchang merged 3 commits intoHomebrew:masterfrom
jonchang:new-audits

Conversation

@jonchang
Copy link
Copy Markdown
Contributor

@jonchang jonchang commented Jan 9, 2020

  • 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 tests with your changes locally?

These homebrew/core audits check for:

  • make check
  • # tag "xxx" comments from external taps
  • build.with? implying the presence of options

Copy link
Copy Markdown
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.

Fantastic work here 👏. A few suggested changes but up to you.

Comment thread Library/Homebrew/rubocops/lines.rb Outdated
Comment thread Library/Homebrew/rubocops/lines.rb Outdated
Comment thread Library/Homebrew/rubocops/lines.rb Outdated
Comment thread Library/Homebrew/rubocops/lines.rb Outdated
Comment thread Library/Homebrew/rubocops/lines.rb Outdated
Comment thread Library/Homebrew/rubocops/lines.rb Outdated
jonchang and others added 3 commits January 11, 2020 09:37
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
@jonchang
Copy link
Copy Markdown
Contributor Author

Merging since tests are 🍏 . Thanks for the review @MikeMcQuaid!

@jonchang jonchang merged commit 798e0a6 into Homebrew:master Jan 11, 2020
@jonchang jonchang deleted the new-audits branch January 11, 2020 18:18
@fxcoudert
Copy link
Copy Markdown
Member

We're seeing this in Homebrew/homebrew-core#48770:

 ==> brew audit p11-kit --online
 ==> FAILED
 Error: 1 problem in 1 formula detected
 p11-kit:
   * C: 43: col 5: Formulae in homebrew/core should not run build-time checks

But build-time checks are allowed in security software (unless we have changed our position on that). Should that audit be only for new formulas?

@jonchang
Copy link
Copy Markdown
Contributor Author

I didn’t know we had that policy. Two options that I can think of:

  • new formulae only
  • add a list to exclude formulae from this check

I slightly prefer the latter. Thoughts?

@fxcoudert
Copy link
Copy Markdown
Member

I'm generally against broad strokes of audit for things that we can have good reasons to ignore. And white lists need to be maintained, and new formulas added, etc. I like the "new formula" because once a maintainer decides that it's a valid use, then it's done. Simple.

If you go with a whitelist, I'd say exclude:

  • Some bignum libraries (gmp mpfr), which are used in several places, regularly trigger miscompilations that we're happy to see before they hit us in unexpected places.
  • Security / crypto software

@MikeMcQuaid MikeMcQuaid mentioned this pull request Jan 27, 2020
6 tasks
@lock lock bot added the outdated PR was locked due to age label Feb 12, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Feb 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

outdated PR was locked due to age

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants