File tree 16 files changed +83
-9
lines changed
16 files changed +83
-9
lines changed Original file line number Diff line number Diff line change
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.
Original file line number Diff line number Diff line change @@ -25,12 +25,7 @@ on in a more segmented fashion.
25
25
* ` cmd/linter ` provides a tool for linting individual reports
26
26
* ` cmd/report2cve ` provides a tool for converting TOML reports into JSON CVEs
27
27
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
34
29
35
30
Unless otherwise noted, the Go source files are distributed under
36
31
the BSD-style license found in the LICENSE file.
Original file line number Diff line number Diff line change
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
+
1
5
package client
2
6
3
7
import (
Original file line number Diff line number Diff line change
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
+
1
5
package client
2
6
3
7
import (
Original file line number Diff line number Diff line change
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
+
1
5
package client
2
6
3
7
import (
Original file line number Diff line number Diff line change
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
+
1
5
package client
2
6
3
7
import (
Original file line number Diff line number Diff line change
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
+
1
5
package main
2
6
3
7
import (
@@ -21,7 +25,7 @@ func fail(why string) {
21
25
}
22
26
23
27
// 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/"
25
29
26
30
func matchesCurrent (path string , new []osv.Entry ) bool {
27
31
var current []osv.Entry
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
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
+
1
5
package main
2
6
3
7
import (
Original file line number Diff line number Diff line change
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
+
1
5
package main
2
6
3
7
import (
Original file line number Diff line number Diff line change
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
+
1
5
package main
2
6
3
7
import (
Original file line number Diff line number Diff line change 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
+
2
6
prev=$( find reports/GO-* | tail -n 1 | sed -n ' s/reports\/GO-[0-9]*-\([0-9]*\).toml/\1/p' )
3
7
new=$( printf " %04d" $( expr $prev + 1) )
4
8
year=$( date +" %Y" )
Original file line number Diff line number Diff line change
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
+
1
5
package osv
2
6
3
7
import (
Original file line number Diff line number Diff line change
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
+
1
5
package osv
2
6
3
7
import (
Original file line number Diff line number Diff line change
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
+
1
5
package report
2
6
3
7
import (
Original file line number Diff line number Diff line change
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
+
1
5
package report
2
6
3
7
import "time"
You can’t perform that action at this time.
0 commit comments