Skip to content

Commit

Permalink
Fix securego/gosec GH Action (#88)
Browse files Browse the repository at this point in the history
The error message is `Unable to resolve action `securego/gosec@v2`, unable to find version `v2``
  • Loading branch information
peterdeme authored Sep 2, 2022
1 parent cfb80ba commit 1601066
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uses: actions/checkout@v3

- name: Run GoSec Security Scanner
uses: securego/gosec@v2
uses: securego/gosec@master
with:
args: "-severity=medium -no-fail -fmt sarif -out gosec-results.sarif ./..."

Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/profile/login_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func loginUsingWebBrowser(creds *session.StoredCredentials) error {
}

m := http.NewServeMux()
server := &http.Server{Addr: fmt.Sprintf(":%d", cliServerPort), Handler: m}
server := &http.Server{Addr: fmt.Sprintf(":%d", cliServerPort), Handler: m, ReadHeaderTimeout: 5 * time.Second}
m.HandleFunc("/", handler)

fmt.Printf("\nOpening browser to %s\n\n", browserURL)
Expand Down Expand Up @@ -269,7 +269,7 @@ func openWebBrowser(url string) error {
cmd = exec.Command("open", url)
case "windows":
r := strings.NewReplacer("&", "^&")
cmd = exec.Command("cmd", "/c", "start", r.Replace(url))
cmd = exec.Command("cmd", "/c", "start", r.Replace(url)) //#nosec
default:
return errors.New("unsupported platform")
}
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/workerpools/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ func (c *drainWorkerCommand) drainedWorkerIsIdle(cliCtx *cli.Context, workerID s

var workerToDrain *worker

for _, w := range query.WorkerPool.Workers {
for i, w := range query.WorkerPool.Workers {
if w.ID == workerID {
workerToDrain = &w
workerToDrain = &query.WorkerPool.Workers[i]
break
}
}
Expand Down

0 comments on commit 1601066

Please sign in to comment.