Issy Long
df8e97fef6
Consolidate add_{warning,error}
methods into one
...
- Specify `strictish: true` in `add_error` to specify that it's not a
super big critical error.
- These will be shown only if `brew audit --strict` is requested.
2023-04-01 01:56:47 +01:00
Issy Long
2b8127d518
Turn cask warnings into errors when --strict
is passed (or implied)
...
- Ignore them and don't show them otherwise.
- Part three of issue 15074:
> As a result, I propose that all current cask audit warnings are never
> displayed as warnings but the underlying audit checks turned into
> errors displayed only with --strict (or one of the other relevant
> flags).
2023-04-01 01:56:46 +01:00
Issy Long
a4e8f9e22b
audit: Make --display-failures-only
the default for Casks
...
- Cask warnings are really noisy and numerous. Let's only show them if
the user passes `--strict` or something implying `--strict`, like
`--new-cask`.
- Additionally remove `display_passes` since we would like silence if
nothing is wrong with the cask, the same as with formula audits.
2023-04-01 01:56:45 +01:00
Markus Reiter
bdd6523ce8
Deprecate appcast
.
2023-03-30 03:29:06 +02:00
Issy Long
0701ea42fa
cask/audit: Pass a URL's referer
through to cURL
...
- Some casks have URL arguments like "referer" (spelled wrong, that's
intentional in the HTTP spec).
- The audit for one such cask, `iThoughtsX`, was failing because the
"referer" wasn't getting passed through to cURL so the access would
404.
----
Before:
```
❯ brew audit --cask --online --appcast --signing 'ithoughtsx'
[...]
audit for ithoughtsx: failed
- The binary URL https://cdn.toketaware.com?download=iThoughtsX.zip is not reachable (HTTP status code 404)
- Version '9.2.0' differs from '9.3.0' retrieved by livecheck.
- Version '9.2.0' differs from '9.3.0' retrieved by livecheck.
Error: 2 problems in 1 cask detected
```
After:
```
❯ brew audit --cask --online --appcast --signing 'ithoughtsx'
[...]
audit for ithoughtsx: failed
- Version '9.2.0' differs from '9.3.0' retrieved by livecheck.
- Version '9.2.0' differs from '9.3.0' retrieved by livecheck.
Error: 1 problem in 1 cask detected
```
2023-03-16 23:28:50 +00:00
Sean Molenaar
45c7e854db
cask: retry audit for correct signing of pkg installers
...
This reverts commit 7497f805ba92186121bd170b504e6bdf2dea1407.
2023-03-04 16:28:38 +01:00
Markus Reiter
a2a68292ae
Allow version :latest
if livecheck
is skip
.
2023-02-28 10:35:07 +01:00
Mike McQuaid
5975ca981d
Merge pull request #14808 from dduugg/audit-types
...
Fixed type error in 'brew audit'
2023-02-27 13:33:05 +00:00
Douglas Eichelberger
7f4250241f
Fixd type error in 'brew audit'
2023-02-24 16:20:51 -08:00
Bo Anderson
e86a8c2477
Move HOMEBREW_NO_INSTALL_FROM_API
defaults to shell
2023-02-24 21:53:08 +00:00
Bevan Kay
7497f805ba
Revert "cask: audit for correct signing of pkg installers"
2023-02-23 09:12:24 +11:00
Sean Molenaar
2b1fbaa26d
Merge pull request #14748 from SMillerDev/feat/cask/audit_short_version_sparkle
...
cask: audit if sparkle livecheck needs multipart version
2023-02-22 20:23:17 +01:00
Sean Molenaar
c14b7917a2
Update Library/Homebrew/cask/audit.rb
2023-02-22 19:43:02 +01:00
Sean Molenaar
dcb6522604
audit: fix appcast_unneeded_long_version syntax
2023-02-22 12:02:25 +01:00
Sean Molenaar
77fc4c2f8a
audit: check if third version exists before checking URL
2023-02-22 11:58:19 +01:00
Sean Molenaar
4dcf5f0ad7
cask: audit style fixes
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-02-21 19:29:05 +01:00
Sean Molenaar
8806178cf3
cask: audit if sparkle livecheck needs multipart version
2023-02-21 19:27:07 +01:00
Sean Molenaar
c5786ea799
cask: audit for correct signing of pkg installers
2023-02-21 17:05:55 +01:00
Mike McQuaid
d292dbdc2b
Revert "Fix permissions before moving extracted files."
2023-02-20 17:20:57 +00:00
Markus Reiter
7c5b6fd10d
Add signatures for extraction methods.
2023-02-19 19:29:21 +01:00
Markus Reiter
cd18703582
Add audit for versions containing colons or slashes.
2023-02-14 02:08:56 +01:00
Markus Reiter
b821a00bc5
Pass only
and except
to cask audits.
2023-02-08 08:38:32 +01:00
Alexander Regueiro
b2b7072fbe
Permit multiple uninstall
stanzas in casks (temp)
...
Longer-term solution is described [here](https://github.com/Homebrew/brew/issues/14365#issuecomment-1398214354 ).
2023-01-21 18:45:58 +00:00
Patrick Linnane
7b6c8329b1
Update Library/Homebrew/cask/audit.rb
...
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
2022-12-28 21:31:02 -08:00
Patrick Linnane
ed6d7ce995
cask/audit: improve handling nil
in sparkle
2022-12-28 21:17:38 -08:00
Bevan Kay
c45a32ea8d
Update Library/Homebrew/cask/audit.rb
...
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
2022-12-28 16:32:58 +11:00
Bevan Kay
2788efb732
Update audit.rb
2022-12-28 16:26:45 +11:00
Bevan Kay
3e11f315f7
cask/audit: improve sparkle minimum version audit
2022-12-28 15:18:59 +11:00
Rylan Polster
09a2ccdf24
Improve minimum macOS version audit for casks
2022-12-27 18:14:46 -05:00
Mike McQuaid
77c0d38c35
brew style --fix
2022-12-13 11:37:06 +00:00
Patrick Linnane
a975ad1a5c
Fix: Sparkle audit prior to el_capitan
2022-11-02 21:30:51 -07:00
Sean Molenaar
f5c6667980
Update Library/Homebrew/cask/audit.rb
...
Co-authored-by: Bo Anderson <mail@boanderson.me>
2022-11-01 21:13:03 +01:00
Sean Molenaar
94c0d8917e
fix: allow sparkle without a macOS version
2022-11-01 20:49:43 +01:00
Sean Molenaar
73d124f342
audit: make min OS check depend on online?
2022-10-31 09:00:43 +01:00
Sean Molenaar
b27aeb8f94
Update Library/Homebrew/cask/audit.rb
...
Co-authored-by: Bo Anderson <mail@boanderson.me>
2022-10-30 19:41:51 +01:00
Sean Molenaar
012bd1f134
cask: audit for minimal OS version in sparkle feeds
2022-10-30 15:00:56 +01:00
Troy McCabe
d490123d74
Second check for github repos as private homepages
2022-09-20 23:06:47 -05:00
Xuehai Pan
46736c5e81
cask/audit: fix audit error when homepage is missing
2022-09-17 16:42:53 +08:00
Sean Molenaar
ff54095b8a
Cask: automatically add cask audits
...
This reverts commit 16618374653dc5461dd971e8ed1992188cc3803d.
2022-09-13 11:19:33 +02:00
Mike McQuaid
1661837465
Revert "Cask: automatically add cask audits"
2022-09-06 11:46:40 +01:00
Sean Molenaar
13b060ab86
Merge pull request #13746 from SMillerDev/chore/cask/cleanup_audit
...
Cask: automatically add cask audits
2022-08-30 09:23:23 +02:00
Sean Molenaar
86f011cefb
Cask: automatically add cask audits
2022-08-29 11:28:20 +02:00
Markus Reiter
999468e41d
Change codesign
error message.
2022-08-28 19:24:32 +02:00
Markus Reiter
5c2dd57794
Fix unreachable code.
2022-08-27 04:00:38 +02:00
Markus Reiter
08642f137f
Ignore failed signature check if no signature is present.
2022-08-27 03:51:44 +02:00
Sean Molenaar
b13f6c7c40
Cask: fix signing audit using unexpected pkg method
2022-08-17 15:49:04 +02:00
Sean Molenaar
f7b32abfa3
Cask: fix signing audit checking all artifacts
2022-08-17 09:56:45 +02:00
Sean Molenaar
ca65777e70
cask/audit: improve wording
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2022-08-16 10:01:35 +02:00
Sean Molenaar
e90371f8ab
cask: add audit for incorrect signing
2022-08-11 09:11:29 +02:00
Sam Ford
8bce1e8e37
cask/audit: Skip livecheck audit for :latest casks
2022-06-18 16:44:29 -04:00