From 03b3af4579a7f3362023acb6273c864d14106bc6 Mon Sep 17 00:00:00 2001 From: SBALAVIGNESH123 Date: Thu, 18 Dec 2025 09:30:00 +0530 Subject: [PATCH] feat(ui): add repository permissions settings page Three permission modes with individual toggles. UI could use some polish but functional. Signed-off-by: SBALAVIGNESH123 --- .../repo/settings/actions_permissions.tmpl | 242 ++++++++++++++++++ 1 file changed, 242 insertions(+) create mode 100644 templates/repo/settings/actions_permissions.tmpl diff --git a/templates/repo/settings/actions_permissions.tmpl b/templates/repo/settings/actions_permissions.tmpl new file mode 100644 index 0000000000..a74fe40e6f --- /dev/null +++ b/templates/repo/settings/actions_permissions.tmpl @@ -0,0 +1,242 @@ +{{template "base/head" .}} +
+ {{template "repo/header" .}} +
+
+ {{template "repo/settings/navbar" .}} +
+ {{template "base/alert" .}} + +

+ {{.locale.Tr "repo.settings.actions.permissions.title"}} +

+ +
+

+ {{.locale.Tr "repo.settings.actions.permissions.desc"}} + + +

+ +
+ {{.CsrfTokenHtml}} + + +
+ + +
+ + + + +
+
+
Individual Permissions
+ + {{/* Actions Permission */}} +
+
+ + +
+
+
+
+ + +
+
+ + {{/* Contents Permission */}} +
+
+
+ + +
+
+
+
+ + +
+
+ + {{/* Packages Permission */}} +
+
+
+ + +
+
+
+
+ + +
+
+ + {{/* Issues Permission */}} +
+
+
+ + +
+
+
+
+ + +
+
+ + {{/* Pull Requests Permission */}} +
+
+
+ + +
+
+
+
+ + +
+
+
+ + + +
+
+ + Security Notice: Fork Pull Requests +
+

+ For security reasons, workflows triggered by pull requests from forked repositories + are always restricted to read-only access, regardless of the settings above. + This prevents malicious forks from accessing secrets or modifying your repository. +

+ + +
+ + + {{if .OrgID}} + {{if .OrgHasRestrictions}} +
+
+ + Organization Restrictions Apply +
+

+ This repository belongs to an organization with permission restrictions. + The settings above cannot exceed the organization's maximum permissions. + Contact your organization admin to grant additional permissions. +

+
+ {{end}} + {{end}} + + +
+ + + {{.locale.Tr "repo.settings.cancel"}} + +
+
+
+
+
+
+
+ + + + +{{template "base/footer" .}}