[PR #7857] Apply some gosec rules #23079

Open
opened 2026-04-19 16:45:15 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/7857
Author: @alpe
Created: 11/27/2024
Status: 🔄 Open

Base: mainHead: gosec_2


📝 Commits (1)

📊 Changes

18 files changed (+53 additions, -46 deletions)

View changed files

📝 app/lifecycle/logging.go (+1 -1)
📝 app/lifecycle/paths.go (+1 -1)
📝 app/lifecycle/server.go (+5 -5)
📝 app/lifecycle/updater.go (+2 -2)
📝 app/store/store.go (+1 -1)
📝 cmd/cmd.go (+2 -2)
📝 cmd/interactive.go (+2 -2)
📝 llm/ggml.go (+2 -1)
📝 llm/server.go (+2 -2)
📝 readline/history.go (+12 -4)
📝 readline/readline.go (+1 -2)
📝 runners/common.go (+5 -5)
📝 server/download.go (+2 -2)
📝 server/images.go (+4 -4)
📝 server/layer.go (+1 -1)
📝 server/modelpath.go (+5 -6)
📝 server/routes.go (+1 -1)
📝 server/sched.go (+4 -4)

📄 Description

Followup on #2311

This PR includes

  • More restrictive file permissions
  • Mark ignored errors to prevent false positives in linters
  • Minor refactoring

🔄 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/ollama/ollama/pull/7857 **Author:** [@alpe](https://github.com/alpe) **Created:** 11/27/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `gosec_2` --- ### 📝 Commits (1) - [`04dbbf9`](https://github.com/ollama/ollama/commit/04dbbf98767d68cf92079eb23cbde98357eff331) Apply some gosec rules ### 📊 Changes **18 files changed** (+53 additions, -46 deletions) <details> <summary>View changed files</summary> 📝 `app/lifecycle/logging.go` (+1 -1) 📝 `app/lifecycle/paths.go` (+1 -1) 📝 `app/lifecycle/server.go` (+5 -5) 📝 `app/lifecycle/updater.go` (+2 -2) 📝 `app/store/store.go` (+1 -1) 📝 `cmd/cmd.go` (+2 -2) 📝 `cmd/interactive.go` (+2 -2) 📝 `llm/ggml.go` (+2 -1) 📝 `llm/server.go` (+2 -2) 📝 `readline/history.go` (+12 -4) 📝 `readline/readline.go` (+1 -2) 📝 `runners/common.go` (+5 -5) 📝 `server/download.go` (+2 -2) 📝 `server/images.go` (+4 -4) 📝 `server/layer.go` (+1 -1) 📝 `server/modelpath.go` (+5 -6) 📝 `server/routes.go` (+1 -1) 📝 `server/sched.go` (+4 -4) </details> ### 📄 Description Followup on #2311 This PR includes * More restrictive file permissions * Mark ignored errors to prevent false positives in linters * Minor refactoring --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-19 16:45:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#23079