Skip to content

Commit

Permalink
add group mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
devksingh4 committed Aug 6, 2024
1 parent 8f8e483 commit 773e468
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/plugins/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@ import {

const CONFIG_SECRET_NAME = "infra-events-api-config" as const;
const GroupRoleMapping: Record<RunEnvironment, Record<string, AppRoles[]>> = {
prod: { "48591dbc-cdcb-4544-9f63-e6b92b067e33": [AppRoles.MANAGER] }, // Infra Chairs
prod: {

Check failure on line 19 in src/plugins/auth.ts

View workflow job for this annotation

GitHub Actions / Run Unit Tests

Delete `·`
"48591dbc-cdcb-4544-9f63-e6b92b067e33": [AppRoles.MANAGER], // Infra Chairs
"ff49e948-4587-416b-8224-65147540d5fc": [AppRoles.MANAGER], // Officers
"ad81254b-4eeb-4c96-8191-3acdce9194b1": [AppRoles.MANAGER] // Exec

Check failure on line 22 in src/plugins/auth.ts

View workflow job for this annotation

GitHub Actions / Run Unit Tests

Insert `,`
},
dev: {
"48591dbc-cdcb-4544-9f63-e6b92b067e33": [AppRoles.MANAGER], // Infra Chairs
"940e4f9e-6891-4e28-9e29-148798495cdb": [AppRoles.MANAGER], // ACM Infra Team
"f8dfc4cf-456b-4da3-9053-f7fdeda5d5d6": [AppRoles.MANAGER], // Infra Leads
"0": [AppRoles.MANAGER], // Dummy Group for development only
},
};
Expand Down

0 comments on commit 773e468

Please sign in to comment.