hackerone-client 0.21.0 → 0.22.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/CODEOWNERS +2 -0
- data/CODE_OF_CONDUCT.md +1 -1
- data/CONTRIBUTING.md +6 -3
- data/LICENSE.txt +1 -1
- data/README.md +3 -3
- data/SECURITY.md +31 -0
- data/SUPPORT.md +13 -0
- data/hackerone-client.gemspec +4 -3
- data/lib/hackerone/client/program.rb +3 -3
- data/lib/hackerone/client/version.rb +1 -1
- data/lib/hackerone/client.rb +3 -2
- metadata +14 -13
- data/.github/workflows/build.yml +0 -36
- data/.travis.yml +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 684b59afaacb9acad9aba5a4a4e696535684c27ee3abb2d37b3a4c9e761c87a8
|
4
|
+
data.tar.gz: 50b813301fb053284ef490a8fad3fea66319881a569ec3acf53329963c4684aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dfae7e6b2348b4a1ab6554fc5a440311fa6c583fbd196684908565395b2a3ad8f04eb5cfd4ed33838c4118a2615b400e3a3874578d2129adfd90791a38abc50
|
7
|
+
data.tar.gz: 2060b8258b6b48f7b0e444b17e87332495facc6a8da934add226c82d78e364f76831c0355da4a200684a1112b49d691adcc679d40bf71a50c6012666789a39b4
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## [0.22.0] - 2024-01-10
|
2
|
+
|
3
|
+
[Update Faraday API call and deprecate support for Ruby <2.6](https://github.com/github/hackerone-client/pull/2) (@maclarel)
|
4
|
+
|
1
5
|
## [0.20.0] - 2020-10-21
|
2
6
|
|
3
7
|
[Add ability to lock a report](https://github.com/oreoshake/hackerone-client/pull/59) (@rzhade3)
|
data/CODEOWNERS
ADDED
data/CODE_OF_CONDUCT.md
CHANGED
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
|
|
55
55
|
## Enforcement
|
56
56
|
|
57
57
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at
|
58
|
+
reported by contacting the project team at opensource@github.com. All
|
59
59
|
complaints will be reviewed and investigated and will result in a response that
|
60
60
|
is deemed necessary and appropriate to the circumstances. The project team is
|
61
61
|
obligated to maintain confidentiality with regard to the reporter of an incident.
|
data/CONTRIBUTING.md
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
## Contributing
|
2
2
|
|
3
|
-
[fork]: https://github.com/
|
4
|
-
[pr]: https://github.com/
|
3
|
+
[fork]: https://github.com/github/hackerone-client/fork
|
4
|
+
[pr]: https://github.com/github/hackerone-client/compare
|
5
5
|
[style]: https://github.com/styleguide/ruby
|
6
6
|
[code-of-conduct]: CODE_OF_CONDUCT.md
|
7
7
|
|
8
8
|
Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
|
9
9
|
|
10
|
-
|
10
|
+
Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the [project's open source license](LICENSE.txt).
|
11
|
+
|
12
|
+
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
|
11
13
|
|
12
14
|
## Submitting a pull request
|
13
15
|
|
@@ -21,6 +23,7 @@ Please note that this project is released with a [Contributor Code of Conduct][c
|
|
21
23
|
|
22
24
|
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
|
23
25
|
|
26
|
+
- Follow the [style guide][style].
|
24
27
|
- Write tests.
|
25
28
|
- Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
|
26
29
|
- Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Hackerone::Client
|
2
2
|
|
3
|
-
A limited client library for interacting with HackerOne. Currently only supports a few operations:
|
3
|
+
A limited client library for interacting with HackerOne in Ruby. Currently only supports a few operations:
|
4
4
|
|
5
5
|
```ruby
|
6
6
|
client = HackerOne::Client::Api.new("github")
|
@@ -114,6 +114,6 @@ Setting this variable will make the client try to absorb errors, like a malforme
|
|
114
114
|
Bug reports and pull requests are welcome on GitHub at https://github.com/oreoshake/hackerone-client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
115
115
|
|
116
116
|
|
117
|
-
## License
|
117
|
+
## License
|
118
118
|
|
119
|
-
|
119
|
+
This project is licensed under the terms of the MIT open source license. Please refer to [MIT](./LICENSE.txt) for the full terms.
|
data/SECURITY.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
Thanks for helping make GitHub safe for everyone.
|
2
|
+
|
3
|
+
# Security
|
4
|
+
|
5
|
+
GitHub takes the security of our software products and services seriously, including all of the open source code repositories managed through our GitHub organizations, such as [GitHub](https://github.com/GitHub).
|
6
|
+
|
7
|
+
Even though [open source repositories are outside of the scope of our bug bounty program](https://bounty.github.com/index.html#scope) and therefore not eligible for bounty rewards, we will ensure that your finding gets passed along to the appropriate maintainers for remediation.
|
8
|
+
|
9
|
+
## Reporting Security Issues
|
10
|
+
|
11
|
+
If you believe you have found a security vulnerability in any GitHub-owned repository, please report it to us through coordinated disclosure.
|
12
|
+
|
13
|
+
**Please do not report security vulnerabilities through public GitHub issues, discussions, or pull requests.**
|
14
|
+
|
15
|
+
Instead, please send an email to opensource-security[@]github.com.
|
16
|
+
|
17
|
+
Please include as much of the information listed below as you can to help us better understand and resolve the issue:
|
18
|
+
|
19
|
+
* The type of issue (e.g., buffer overflow, SQL injection, or cross-site scripting)
|
20
|
+
* Full paths of source file(s) related to the manifestation of the issue
|
21
|
+
* The location of the affected source code (tag/branch/commit or direct URL)
|
22
|
+
* Any special configuration required to reproduce the issue
|
23
|
+
* Step-by-step instructions to reproduce the issue
|
24
|
+
* Proof-of-concept or exploit code (if possible)
|
25
|
+
* Impact of the issue, including how an attacker might exploit the issue
|
26
|
+
|
27
|
+
This information will help us triage your report more quickly.
|
28
|
+
|
29
|
+
## Policy
|
30
|
+
|
31
|
+
See [GitHub's Safe Harbor Policy](https://docs.github.com/en/github/site-policy/github-bug-bounty-program-legal-safe-harbor#1-safe-harbor-terms)
|
data/SUPPORT.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Support
|
2
|
+
|
3
|
+
## How to file issues and get help
|
4
|
+
|
5
|
+
This project uses GitHub issues to track bugs and feature requests. Please search the existing issues before filing new issues to avoid duplicates. For new issues, file your bug or feature request as a new issue.
|
6
|
+
|
7
|
+
For help or questions about using this project, please file an issue on this repository.
|
8
|
+
|
9
|
+
- `hackerone-client` is not actively developed but is maintained by GitHub staff **AND THE COMMUNITY**. We will do our best to respond to support and community questions in a timely manner.
|
10
|
+
|
11
|
+
## GitHub Support Policy
|
12
|
+
|
13
|
+
Support for this project is limited to the resources listed above.
|
data/hackerone-client.gemspec
CHANGED
@@ -12,11 +12,12 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.email = ["neil.matatall@gmail.com"]
|
13
13
|
|
14
14
|
spec.summary = %q{A limited client for the HackerOne API}
|
15
|
-
spec.homepage = "https://github.com/
|
15
|
+
spec.homepage = "https://github.com/github/hackerone-client"
|
16
16
|
spec.license = "MIT"
|
17
|
+
spec.required_ruby_version = ">= 2.6.0"
|
17
18
|
|
18
19
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
19
|
-
f.match(%r{^(test|spec|features)/})
|
20
|
+
f.match(%r{^(test|spec|features|.github|)/})
|
20
21
|
end
|
21
22
|
spec.bindir = "exe"
|
22
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
@@ -27,6 +28,6 @@ Gem::Specification.new do |spec|
|
|
27
28
|
spec.add_development_dependency "rspec"
|
28
29
|
spec.add_development_dependency "vcr"
|
29
30
|
spec.add_development_dependency "webmock"
|
30
|
-
spec.add_runtime_dependency "faraday"
|
31
|
+
spec.add_runtime_dependency "faraday", ">= 2.0.0"
|
31
32
|
spec.add_runtime_dependency "activesupport"
|
32
33
|
end
|
@@ -78,9 +78,9 @@ module HackerOne
|
|
78
78
|
|
79
79
|
def balance
|
80
80
|
response_body = make_get_request(
|
81
|
-
|
82
|
-
|
83
|
-
|
81
|
+
"programs/#{id}/billing/balance"
|
82
|
+
)
|
83
|
+
BillingBalance.new(response_body).balance
|
84
84
|
end
|
85
85
|
|
86
86
|
private
|
data/lib/hackerone/client.rb
CHANGED
@@ -2,7 +2,8 @@
|
|
2
2
|
|
3
3
|
require "faraday"
|
4
4
|
require "json"
|
5
|
-
require "active_support
|
5
|
+
require "active_support"
|
6
|
+
require "active_support/core_ext/numeric/time"
|
6
7
|
require_relative "client/version"
|
7
8
|
require_relative "client/report"
|
8
9
|
require_relative "client/activity"
|
@@ -201,7 +202,7 @@ module HackerOne
|
|
201
202
|
end
|
202
203
|
|
203
204
|
@connection ||= Faraday.new(url: "https://api.hackerone.com/v1") do |faraday|
|
204
|
-
faraday.
|
205
|
+
faraday.request(:authorization, :basic, ENV["HACKERONE_TOKEN_NAME"], ENV["HACKERONE_TOKEN"])
|
205
206
|
faraday.adapter Faraday.default_adapter
|
206
207
|
end
|
207
208
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hackerone-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.22.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neil Matatall
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 2.0.0
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 2.0.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: activesupport
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,19 +108,18 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
-
description:
|
111
|
+
description:
|
112
112
|
email:
|
113
113
|
- neil.matatall@gmail.com
|
114
114
|
executables: []
|
115
115
|
extensions: []
|
116
116
|
extra_rdoc_files: []
|
117
117
|
files:
|
118
|
-
- ".github/workflows/build.yml"
|
119
118
|
- ".gitignore"
|
120
119
|
- ".rspec"
|
121
120
|
- ".rubocop.yml"
|
122
|
-
- ".travis.yml"
|
123
121
|
- CHANGELOG.md
|
122
|
+
- CODEOWNERS
|
124
123
|
- CODE_OF_CONDUCT.md
|
125
124
|
- CONTRIBUTING.md
|
126
125
|
- Gemfile
|
@@ -128,6 +127,8 @@ files:
|
|
128
127
|
- LICENSE.txt
|
129
128
|
- README.md
|
130
129
|
- Rakefile
|
130
|
+
- SECURITY.md
|
131
|
+
- SUPPORT.md
|
131
132
|
- bin/console
|
132
133
|
- bin/setup
|
133
134
|
- fixtures/vcr_cassettes/add_comment.yml
|
@@ -186,11 +187,11 @@ files:
|
|
186
187
|
- lib/hackerone/client/user.rb
|
187
188
|
- lib/hackerone/client/version.rb
|
188
189
|
- lib/hackerone/client/weakness.rb
|
189
|
-
homepage: https://github.com/
|
190
|
+
homepage: https://github.com/github/hackerone-client
|
190
191
|
licenses:
|
191
192
|
- MIT
|
192
193
|
metadata: {}
|
193
|
-
post_install_message:
|
194
|
+
post_install_message:
|
194
195
|
rdoc_options: []
|
195
196
|
require_paths:
|
196
197
|
- lib
|
@@ -198,15 +199,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
198
199
|
requirements:
|
199
200
|
- - ">="
|
200
201
|
- !ruby/object:Gem::Version
|
201
|
-
version:
|
202
|
+
version: 2.6.0
|
202
203
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
204
|
requirements:
|
204
205
|
- - ">="
|
205
206
|
- !ruby/object:Gem::Version
|
206
207
|
version: '0'
|
207
208
|
requirements: []
|
208
|
-
rubygems_version: 3.0.
|
209
|
-
signing_key:
|
209
|
+
rubygems_version: 3.0.9
|
210
|
+
signing_key:
|
210
211
|
specification_version: 4
|
211
212
|
summary: A limited client for the HackerOne API
|
212
213
|
test_files: []
|
data/.github/workflows/build.yml
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
name: Build + Test
|
2
|
-
on: [pull_request]
|
3
|
-
|
4
|
-
jobs:
|
5
|
-
build:
|
6
|
-
name: Build + Test
|
7
|
-
runs-on: ubuntu-latest
|
8
|
-
strategy:
|
9
|
-
matrix:
|
10
|
-
ruby: [ '2.4.0', '2.5.0', '2.6.0', '2.7.2', '3.0.0']
|
11
|
-
steps:
|
12
|
-
- uses: actions/checkout@v2
|
13
|
-
- name: Set up Ruby ${{ matrix.ruby }}
|
14
|
-
uses: ruby/setup-ruby@v1.64.1
|
15
|
-
with:
|
16
|
-
ruby-version: ${{ matrix.ruby }}
|
17
|
-
bundler-cache: true
|
18
|
-
- name: Build and test with Rake with Ruby ${{ matrix.ruby }}
|
19
|
-
run: |
|
20
|
-
gem install bundler
|
21
|
-
bundle install --jobs 4 --retry 3
|
22
|
-
bundle exec rake spec
|
23
|
-
lint:
|
24
|
-
name: Rubocop
|
25
|
-
runs-on: ubuntu-latest
|
26
|
-
steps:
|
27
|
-
- uses: actions/checkout@v2
|
28
|
-
- name: Set up Ruby 2.6
|
29
|
-
uses: actions/setup-ruby@v1
|
30
|
-
with:
|
31
|
-
ruby-version: 2.6
|
32
|
-
- name: Run linters
|
33
|
-
run: |
|
34
|
-
gem install bundler
|
35
|
-
bundle install --jobs 4 --retry 3
|
36
|
-
bundle exec rake rubocop
|