ZedThree / clang-tidy-review

Create a pull request review based on clang-tidy warnings
MIT License
88 stars 44 forks source link

fix: download artifacts as binary blobs and follow redirects #118

Closed Nerixyz closed 6 months ago

Nerixyz commented 6 months ago

I'm sorry for not testing properly in https://github.com/ZedThree/clang-tidy-review/pull/115. The stuff still fails, because pygithub doesn't follow redirects and the artifact is a binary blob, not JSON (I tested it this time).

https://github.com/ZedThree/clang-tidy-review/pull/113 noted that using requests isn't nice, so I'm using urllib3. The accept header might look weird, but the documentation recommends this even though we get a zip returned 🙃.

I've also noticed that this action still uses actions/upload-action@v3 (uses deprecated node version), so I updated it to v4.

While testing, I noticed that the action fails even though it succeeded, because since https://github.com/ZedThree/clang-tidy-review/pull/103, the action exits with the amount of comments. I'd like to open a PR (after this one) that adds an option to disable this.