mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 12:58:11 -05:00
[PR #21688] [CLOSED] ci: declare explicit least-privilege GITHUB_TOKEN permissions #26206
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/21688
Author: @Rohan5commit
Created: 2/21/2026
Status: ❌ Closed
Base:
main← Head:ci/explicit-workflow-token-permissions📝 Commits (1)
3b76e95ci: declare explicit least-privilege workflow token permissions📊 Changes
4 files changed (+10 additions, -0 deletions)
View changed files
📝
.github/workflows/deploy-to-hf-spaces.yml(+3 -0)📝
.github/workflows/format-backend.yaml(+3 -0)📝
.github/workflows/format-build-frontend.yaml(+3 -0)📝
.github/workflows/release-pypi.yml(+1 -0)📄 Description
Summary\n- add explicit top-level
permissions: contents: readto deploy and CI formatting workflows\n- addcontents: readto the PyPI release job permissions alongside existingid-token: write\n\n## Why\nThese workflows currently rely on implicit/default token scopes in places. Explicitly declaring the minimum required permissions improves security posture and makes workflow intent clear.\n\n## Changed files\n-.github/workflows/deploy-to-hf-spaces.yml\n-.github/workflows/format-backend.yaml\n-.github/workflows/format-build-frontend.yaml\n-.github/workflows/release-pypi.yml\n\n## Notes\n- configuration-only change; no build/test logic modified\n🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.