• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pandatix / nvdapi / 13234429891

10 Feb 2025 05:49AM UTC coverage: 75.904% (-14.5%) from 90.361%
13234429891

Pull #119

github

web-flow
build(deps): bump github/codeql-action from 3.28.8 to 3.28.9

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.8 to 3.28.9.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/dd746615b...9e8d0789d)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #119: build(deps): bump github/codeql-action from 3.28.8 to 3.28.9

63 of 83 relevant lines covered (75.9%)

0.88 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/v2/client.go
1
package nvdapi
2

3
import (
4
        "net/http"
5

6
        "github.com/pandatix/nvdapi/common"
7
)
8

9
// NVDClient offers the possibility to set the API key for
10
// each request without having to specify it for each call.
11
// This client is the preferred way to use the API.
12
type NVDClient struct {
13
        apiKey string
14
        client common.HTTPClient
15
}
16

17
func (client *NVDClient) Do(req *http.Request) (*http.Response, error) {
×
18
        req.Header.Add("apiKey", client.apiKey)
×
19
        return client.client.Do(req)
×
20
}
×
21

22
var _ common.HTTPClient = (*NVDClient)(nil)
23

24
func NewNVDClient(client common.HTTPClient, apiKey string) (*NVDClient, error) {
×
25
        if client == nil {
×
26
                return nil, common.ErrNilClient
×
27
        }
×
28
        return &NVDClient{
×
29
                apiKey: apiKey,
×
30
                client: client,
×
31
        }, nil
×
32
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc