[PR #1277] [MERGED] lint: add ReadHeaderTimeout #1871

Closed
opened 2026-03-01 21:53:02 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/1277
Author: @robertkowalski
Created: 7/25/2022
Status: Merged
Merged: 7/25/2022
Merged by: @mergify[bot]

Base: masterHead: slowloris


📝 Commits (1)

  • 668324f lint: add ReadHeaderTimeout

📊 Changes

1 file changed (+6 additions, -1 deletions)

View changed files

📝 pkg/artifacts/server.go (+6 -1)

📄 Description

currently build fail with:

run golangci-lint
  Running [/home/runner/golangci-lint-1.47.0-linux-amd64/golangci-lint run --out-format=github-actions] in [] ...
  Error: G112: Potential Slowloris Attack because ReadHeaderTimeout is not configured in the http.Server (gosec)

for example in this PR:
https://github.com/nektos/act/runs/7405009660?check_suite_focus=true

this sets the required ReadHeaderTimeout


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nektos/act/pull/1277 **Author:** [@robertkowalski](https://github.com/robertkowalski) **Created:** 7/25/2022 **Status:** ✅ Merged **Merged:** 7/25/2022 **Merged by:** [@mergify[bot]](https://github.com/apps/mergify) **Base:** `master` ← **Head:** `slowloris` --- ### 📝 Commits (1) - [`668324f`](https://github.com/nektos/act/commit/668324fa577fe56bcbd1454d1dd321f8f7c50012) lint: add ReadHeaderTimeout ### 📊 Changes **1 file changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `pkg/artifacts/server.go` (+6 -1) </details> ### 📄 Description currently build fail with: ``` run golangci-lint Running [/home/runner/golangci-lint-1.47.0-linux-amd64/golangci-lint run --out-format=github-actions] in [] ... Error: G112: Potential Slowloris Attack because ReadHeaderTimeout is not configured in the http.Server (gosec) ``` for example in this PR: https://github.com/nektos/act/runs/7405009660?check_suite_focus=true this sets the required ReadHeaderTimeout --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:53:02 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1871
No description provided.