File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ require (
1717)
1818
1919require (
20- filippo.io/edwards25519 v1.1.0 // indirect
20+ filippo.io/edwards25519 v1.1.1 // indirect
2121 github.com/cpuguy83/go-md2man/v2 v2.0.7 // indirect
2222 github.com/davecgh/go-spew v1.1.1 // indirect
2323 github.com/go-jose/go-jose/v3 v3.0.4 // indirect
Original file line number Diff line number Diff line change 1- filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA =
2- filippo.io/edwards25519 v1.1.0 /go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4 =
1+ filippo.io/edwards25519 v1.1.1 h1:YpjwWWlNmGIDyXOn8zLzqiD+9TyIlPhGFG96P39uBpw =
2+ filippo.io/edwards25519 v1.1.1 /go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4 =
33github.com/BurntSushi/toml v1.5.0 /go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho =
44github.com/chzyer/logex v1.1.10 /go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI =
55github.com/chzyer/logex v1.2.1 h1:XHDu3E6q+gdHgsdTPH6ImJMIp436vR6MPtH8gP05QzM =
Original file line number Diff line number Diff line change 77 "time"
88
99 "github.com/pkg/errors"
10+
1011 "go.step.sm/crypto/jose"
1112)
1213
@@ -52,7 +53,7 @@ type Payload struct {
5253 Version interface {} `json:"ver"`
5354 XMSMirID string `json:"xms_mirid"`
5455 K8sSANamespace string `json:"kubernetes.io/serviceaccount/namespace,omitempty"`
55- K8sSASecretName string `json:"kubernetes.io/serviceaccount/secret.name,omitempty"`
56+ K8sSASecretName string `json:"kubernetes.io/serviceaccount/secret.name,omitempty"` // #nosec G117 -- property used for JSON (un)marshaling
5657 K8sSAServiceAccountName string `json:"kubernetes.io/serviceaccount/service-account.name,omitempty"`
5758 K8sSAServiceAccountUID string `json:"kubernetes.io/serviceaccount/service-account.uid,omitempty"`
5859 Google * GCPGooglePayload `json:"google"` // GCP token claims
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import (
1010 "github.com/chzyer/readline"
1111 "github.com/manifoldco/promptui"
1212 "github.com/pkg/errors"
13+
1314 "go.step.sm/crypto/randutil"
1415)
1516
@@ -305,7 +306,7 @@ func preparePromptTerminal() (func(), error) {
305306 tty .Close ()
306307 }
307308
308- fd := int (tty .Fd ())
309+ fd := int (tty .Fd ()) // #nosec G115 -- uintptr comes from file descriptor
309310 state , err := readline .MakeRaw (fd )
310311 if err != nil {
311312 defer clean ()
@@ -335,7 +336,7 @@ func prepareSelectTerminal() (func(), error) {
335336 tty .Close ()
336337 }
337338
338- fd := int (tty .Fd ())
339+ fd := int (tty .Fd ()) // #nosec G115 -- uintptr comes from file descriptor
339340 state , err := readline .MakeRaw (fd )
340341 if err != nil {
341342 defer clean ()
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ func (r *Renderer) write(b []byte) {
9090}
9191
9292func (r * Renderer ) printf (s string , a ... interface {}) {
93- fmt .Fprintf (r .out .w , s , a ... )
93+ fmt .Fprintf (r .out .w , s , a ... ) // #nosec G705 -- renders internal help content
9494}
9595
9696func (r * Renderer ) capture (mode RenderMode ) {
You can’t perform that action at this time.
0 commit comments