From c54d393fce689790c3c06ba8574ad35e273e92bf Mon Sep 17 00:00:00 2001 From: David Hadas Date: Tue, 16 Aug 2022 19:54:47 +0300 Subject: [PATCH] Go security guard (#5176) * added security-guard * go-security-guard --- golang/_redirects | 1 + tools/redir-gen/main.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/golang/_redirects b/golang/_redirects index f174c35fc..ec3cc350b 100755 --- a/golang/_redirects +++ b/golang/_redirects @@ -65,6 +65,7 @@ /sample-controller/* go-get=1 /golang/sample-controller.html 200 /sample-source/* go-get=1 /golang/sample-source.html 200 /security-guard/* go-get=1 /golang/security-guard.html 200 +/security-guard/* https://pkg.go.dev/knative.dev/security-guard/:splat /serving/* go-get=1 /golang/serving.html 200 /serving/* https://pkg.go.dev/knative.dev/serving/:splat /specs/* go-get=1 /golang/specs.html 200 diff --git a/tools/redir-gen/main.go b/tools/redir-gen/main.go index 1561efa0b..324cc615d 100644 --- a/tools/redir-gen/main.go +++ b/tools/redir-gen/main.go @@ -33,7 +33,7 @@ var ( // Repos known to contain Go libraries, so that requesting // https://knative.dev/ in a browser should redirect to // https://pkg.go.dev/knative.dev/ - redirectingGoRepos = []string{"pkg", "serving"} + redirectingGoRepos = []string{"pkg", "serving", "security-guard"} ) // repoInfo provides a simple holder for GitHub repo information needed to