artichoke / generate_third_party Goto Github PK
View Code? Open in Web Editor NEW๐ Generate listings of third party licenses for Artichoke Ruby
Home Page: https://github.com/artichoke/generate_third_party#github-actions
License: MIT License
๐ Generate listings of third party licenses for Artichoke Ruby
Home Page: https://github.com/artichoke/generate_third_party#github-actions
License: MIT License
Now that we added proper debug logging for calls to the GitHub API in #14, we can see that the 403 errors that curl
was reporting are in fact rate limiting errors:
Error during processing: OpenURI::HTTPError: 403 rate limit exceeded
Backtrace:
/Users/runner/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/3.1.0/open-uri.rb:364:in `open_http'
/Users/runner/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/3.1.0/open-uri.rb:741:in `buffer_open'
/Users/runner/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/3.1.0/open-uri.rb:212:in `block in open_loop'
/Users/runner/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/3.1.0/open-uri.rb:210:in `catch'
/Users/runner/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/3.1.0/open-uri.rb:210:in `open_loop'
/Users/runner/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/3.1.0/open-uri.rb:151:in `open_uri'
/Users/runner/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/3.1.0/open-uri.rb:721:in `open'
/Users/runner/work/_actions/artichoke/generate_third_party/trunk/bin/install-cargo-about:69:in `block (2 levels) in <top (required)>'
/Users/runner/work/_actions/artichoke/generate_third_party/trunk/bin/install-cargo-about:37:in `retry_with'
/Users/runner/work/_actions/artichoke/generate_third_party/trunk/bin/install-cargo-about:68:in `block in <top (required)>'
/Users/runner/work/_actions/artichoke/generate_third_party/trunk/bin/install-cargo-about:29:in `log_group'
/Users/runner/work/_actions/artichoke/generate_third_party/trunk/bin/install-cargo-about:65:in `<top (required)>'
/Users/runner/work/_actions/artichoke/generate_third_party/trunk/vendor/bundle/ruby/3.1.0/bin/install-cargo-about:25:in `load'
/Users/runner/work/_actions/artichoke/generate_third_party/trunk/vendor/bundle/ruby/3.1.0/bin/install-cargo-about:25:in `<top (required)>'
/Users/runner/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/lib/bundler/cli/exec.rb:58:in `load'
/Users/runner/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/lib/bundler/cli/exec.rb:58:in `kernel_load'
/Users/runner/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/lib/bundler/cli/exec.rb:23:in `run'
/Users/runner/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/lib/bundler/cli.rb:484:in `exec'
/Users/runner/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/Users/runner/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/Users/runner/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
/Users/runner/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/lib/bundler/cli.rb:31:in `dispatch'
/Users/runner/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/Users/runner/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/lib/bundler/cli.rb:25:in `start'
/Users/runner/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/exe/bundle:48:in `block in <top (required)>'
/Users/runner/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'
/Users/runner/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/exe/bundle:36:in `<top (required)>'
/Users/runner/hostedtoolcache/Ruby/3.1.2/x64/bin/bundle:25:in `load'
/Users/runner/hostedtoolcache/Ruby/3.1.2/x64/bin/bundle:25:in `<main>'
Retrying ...
It looks like the GitHub API returns information about rate limits in the response: https://docs.github.com/en/rest/overview/resources-in-the-rest-api#schema
$ curl -I https://api.github.com/users/octocat/orgs
> HTTP/2 200
> Server: nginx
> Date: Fri, 12 Oct 2012 23:33:14 GMT
> Content-Type: application/json; charset=utf-8
> ETag: "a00049ba79152d03380c34652f2cb612"
> X-GitHub-Media-Type: github.v3
> x-ratelimit-limit: 5000
> x-ratelimit-remaining: 4987
> x-ratelimit-reset: 1350085394
> Content-Length: 5
> Cache-Control: max-age=0, private, must-revalidate
> X-Content-Type-Options: nosniff
Additionally, it looks like we're calling the releases API unauthenticated. We can pass the GitHub token through in an Authorization header to get an isolated rate limit quota: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#example-2-calling-the-rest-api
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.