diff options
| -rw-r--r-- | cmd/no-way-to-prevent-this/main.go | 7 | ||||
| -rw-r--r-- | go.mod | 1 | ||||
| -rw-r--r-- | go.sum | 2 | ||||
| -rw-r--r-- | gomod2nix.toml | 3 |
4 files changed, 12 insertions, 1 deletions
diff --git a/cmd/no-way-to-prevent-this/main.go b/cmd/no-way-to-prevent-this/main.go index e05581d..c84797b 100644 --- a/cmd/no-way-to-prevent-this/main.go +++ b/cmd/no-way-to-prevent-this/main.go @@ -5,6 +5,8 @@ import ( "os" "text/template" "time" + + "github.com/go-faker/faker/v4" ) var ( @@ -26,6 +28,8 @@ func main() { } defer fout.Close() + name := faker.Name() + data := map[string]string{ "Date": *date, "CVE": *cve, @@ -33,6 +37,7 @@ func main() { "Project": *project, "ProjectLink": *projectLink, "Summary": *summary, + "Name": name, } tmpl := template.Must(template.New("article").Parse(articleTemplate)) @@ -55,7 +60,7 @@ hero: In the hours following the release of [{{.CVE}}]({{.CVELink}}) for the project [{{.Project}}]({{.ProjectLink}}), site reliability workers and systems administrators scrambled to desperately rebuild and patch all their systems to fix {{.Summary}}. This is due to the affected components being written in C, the only programming language where these vulnerabilities regularly happen. "This was a terrible tragedy, but sometimes -these things just happen and there's nothing anyone can do to stop them," said programmer Willodean Santorella, echoing statements +these things just happen and there's nothing anyone can do to stop them," said programmer {{.Name}}, echoing statements expressed by hundreds of thousands of programmers who use the only language where 90% of the world's memory safety vulnerabilities have occurred in the last 50 years, and whose projects are 20 times more likely to have security vulnerabilities. "It's a shame, but what can we do? There really isn't anything we can do to prevent memory safety vulnerabilities from happening if the programmer doesn't want to @@ -48,6 +48,7 @@ require ( github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c // indirect github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 // indirect github.com/fxamacker/cbor/v2 v2.5.0 // indirect + github.com/go-faker/faker/v4 v4.2.0 // indirect github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect github.com/go-git/go-billy/v5 v5.5.0 // indirect github.com/go-ole/go-ole v1.3.0 // indirect @@ -101,6 +101,8 @@ github.com/github/fakeca v0.1.0 h1:Km/MVOFvclqxPM9dZBC4+QE564nU4gz4iZ0D9pMw28I= github.com/github/fakeca v0.1.0/go.mod h1:+bormgoGMMuamOscx7N91aOuUST7wdaJ2rNjeohylyo= github.com/gliderlabs/ssh v0.3.5 h1:OcaySEmAQJgyYcArR+gGGTHCyE7nvhEMTlYY+Dp8CpY= github.com/gliderlabs/ssh v0.3.5/go.mod h1:8XB4KraRrX39qHhT6yxPsHedjA08I/uBVwj4xC+/+z4= +github.com/go-faker/faker/v4 v4.2.0 h1:dGebOupKwssrODV51E0zbMrv5e2gO9VWSLNC1WDCpWg= +github.com/go-faker/faker/v4 v4.2.0/go.mod h1:F/bBy8GH9NxOxMInug5Gx4WYeG6fHJZ8Ol/dhcpRub4= github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI= github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376/go.mod h1:an3vInlBmSxCcxctByoQdvwPiA7DTK7jaaFDBTtu0ic= github.com/go-git/go-billy/v5 v5.5.0 h1:yEY4yhzCDuMGSv83oGxiBotRzhwhNr8VZyphhiu+mTU= diff --git a/gomod2nix.toml b/gomod2nix.toml index 6f652f6..cd59d19 100644 --- a/gomod2nix.toml +++ b/gomod2nix.toml @@ -106,6 +106,9 @@ schema = 3 [mod."github.com/fxamacker/cbor/v2"] version = "v2.5.0" hash = "sha256-2rhvuNZjeidDP+Og6Q0u4ROiaPrEOjoI5wCb17XRnOQ=" + [mod."github.com/go-faker/faker/v4"] + version = "v4.2.0" + hash = "sha256-ZnafEz3GQHb7JE1YL8gXYhvHVvqxmvbPLPcVZXJwl9o=" [mod."github.com/go-git/gcfg"] version = "v1.5.1-0.20230307220236-3a3c6141e376" hash = "sha256-f4k0gSYuo0/q3WOoTxl2eFaj7WZpdz29ih6CKc8Ude8=" |
