Skip to content

Commit 087c061

Browse files
committed
all: add license headers and CONTRIBUTING.md
Change-Id: Icb46b1d9d8f3f1db6066b729e511cbd0ff94f113 Reviewed-on: https://team-review.git.corp.google.com/c/golang/vulndb/+/1054184 Reviewed-by: Filippo Valsorda <[email protected]>
1 parent 988b93d commit 087c061

16 files changed

+83
-9
lines changed

CONTRIBUTING.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Contributing to the Go Vulnerability Database
2+
3+
Go is an open source project.
4+
5+
It is the work of hundreds of contributors. We appreciate your help!
6+
7+
## Reporting a vulnerability
8+
9+
To report a new *public* vulnerability,
10+
[open an issue](https://github.com/golang/vulndb/issues/new),
11+
send a GitHub PR, or mail a Gerrit CL.
12+
13+
Please read the
14+
[Contribution Guidelines](https://golang.org/doc/contribute.html)
15+
before sending patches.
16+
17+
## Contributor License Agreement
18+
19+
Contributions to this project must be accompanied by a Contributor License
20+
Agreement (CLA). You (or your employer) retain the copyright to your
21+
contribution; this simply gives us permission to use and redistribute your
22+
contributions as part of the project. Head over to
23+
<https://cla.developers.google.com/> to see your current agreements on file or
24+
to sign a new one.
25+
26+
You generally only need to submit a CLA once, so if you've already submitted one
27+
(even if it was for a different project), you probably don't need to do it
28+
again.

README.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,7 @@ on in a more segmented fashion.
2525
* `cmd/linter` provides a tool for linting individual reports
2626
* `cmd/report2cve` provides a tool for converting TOML reports into JSON CVEs
2727

28-
## Contributing
29-
30-
To report a new *public* vulnerability, [open an
31-
issue](https://github.com/golang/vulndb/issues/new) or send a PR. Please read
32-
the [Contribution Guidelines](https://golang.org/doc/contribute.html) before
33-
sending patches.
28+
## License
3429

3530
Unless otherwise noted, the Go source files are distributed under
3631
the BSD-style license found in the LICENSE file.

client/cache.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2021 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
15
package client
26

37
import (

client/cache_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2021 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
15
package client
26

37
import (

client/client.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2021 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
15
package client
26

37
import (

client/client_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2021 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
15
package client
26

37
import (

cmd/gendb/main.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2021 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
15
package main
26

37
import (
@@ -21,7 +25,7 @@ func fail(why string) {
2125
}
2226

2327
// TODO: obviously not for the real world
24-
const dbURL = "https://team.git.corp.google.com/golang/vulndb/+/refs/heads/main/reports/"
28+
const dbURL = "https://go.googlesource.com/vulndb/+/refs/heads/main/reports/"
2529

2630
func matchesCurrent(path string, new []osv.Entry) bool {
2731
var current []osv.Entry

cmd/gendb/main_test.go

-1
This file was deleted.

cmd/genhtml/main.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2021 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
15
package main
26

37
import (

cmd/linter/main.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2021 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
15
package main
26

37
import (

cmd/report2cve/main.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2021 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
15
package main
26

37
import (

new-vuln.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
2+
# Copyright 2021 The Go Authors. All rights reserved.
3+
# Use of this source code is governed by a BSD-style
4+
# license that can be found in the LICENSE file.
5+
26
prev=$(find reports/GO-* | tail -n 1 | sed -n 's/reports\/GO-[0-9]*-\([0-9]*\).toml/\1/p')
37
new=$(printf "%04d" $(expr $prev + 1))
48
year=$(date +"%Y")

osv/json.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2021 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
15
package osv
26

37
import (

osv/json_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2021 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
15
package osv
26

37
import (

report/lint.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2021 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
15
package report
26

37
import (

report/report.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2021 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
15
package report
26

37
import "time"

0 commit comments

Comments
 (0)