Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/config/orgRoles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export type OrgRoleName =
| 'all_repo_triage'
| 'all_repo_write'
| 'all_repo_maintain'
| 'all_repo_admin';
| 'all_repo_admin'
| 'security_manager';

export interface OrgRoleAssignment {
/** GitHub team slug */
Expand All @@ -20,4 +21,7 @@ export interface OrgRoleAssignment {
export const ORG_ROLE_ASSIGNMENTS: OrgRoleAssignment[] = [
{ team: 'lead-maintainers', role: 'all_repo_admin' },
{ team: 'core-maintainers', role: 'all_repo_admin' },
// Security managers can view and manage security alerts and draft security
// advisories (GHSAs) across all repositories in the org.
{ team: 'security-managers', role: 'security_manager' },
];
1 change: 1 addition & 0 deletions src/config/roleIds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const ROLE_IDS = {
CORE_MAINTAINERS: 'core-maintainers',
LEAD_MAINTAINERS: 'lead-maintainers',
MODERATORS: 'moderators',
SECURITY_MANAGERS: 'security-managers', // GitHub only (org security_manager role)
ADMINISTRATORS: 'administrators', // Discord only
COMMUNITY_MANAGERS: 'community-managers', // Discord only

Expand Down
6 changes: 6 additions & 0 deletions src/config/roles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ export const ROLES: readonly Role[] = [
discord: { role: 'community moderators (synced)' },
google: { group: 'moderators', provisionUser: true },
},
{
id: ROLE_IDS.SECURITY_MANAGERS,
description: 'Organization security managers (security_manager org role via orgRoles.ts)',
github: { team: 'security-managers' },
// GitHub only - grants org-wide visibility into security alerts and draft advisories
},

// ===================
// Maintainer Groups
Expand Down
9 changes: 7 additions & 2 deletions src/config/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ export const MEMBERS: readonly Member[] = [
},
{
github: 'jenn-newton',
memberOf: [ROLE_IDS.SECURITY_WG],
memberOf: [ROLE_IDS.SECURITY_MANAGERS, ROLE_IDS.SECURITY_WG],
},
{
github: 'jeongukjae',
Expand Down Expand Up @@ -532,7 +532,12 @@ export const MEMBERS: readonly Member[] = [
firstName: 'Max',
lastName: 'Isbey',
googleEmailPrefix: 'max',
memberOf: [ROLE_IDS.MAINTAINERS, ROLE_IDS.PYTHON_SDK, ROLE_IDS.TYPESCRIPT_SDK_COLLABORATORS],
memberOf: [
ROLE_IDS.MAINTAINERS,
ROLE_IDS.PYTHON_SDK,
ROLE_IDS.SECURITY_MANAGERS,
ROLE_IDS.TYPESCRIPT_SDK_COLLABORATORS,
],
},
{
github: 'michaelneale',
Expand Down
Loading