Skip to content

Commit 681d62d

Browse files
committed
limit permissions for crates-io-ops bot
Signed-off-by: Nell Shamrell <[email protected]> wip Signed-off-by: Nell Shamrell <[email protected]> more refining Signed-off-by: Nell Shamrell <[email protected]> straightens out permissions for crates_io_ops_bot apps Signed-off-by: Nell Shamrell <[email protected]> last refinements Signed-off-by: Nell Shamrell <[email protected]>
1 parent 3f4a8df commit 681d62d

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

people/jtgeibel.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ name = "Justin Geibel"
22
github = "jtgeibel"
33
github-id = 22186
44
5+
6+
[permissions]
7+
crates-io-ops-bot.staging_crates_io = true

people/nellshamrell.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ name = "Nell Shamrell-Harrington"
22
github = "nellshamrell"
33
github-id = 813007
44
5+
6+
[permissions]
7+
crates-io-ops-bot.staging_crates_io = true

people/pietroalbini.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name = "Pietro Albini"
22
github = "pietroalbini"
33
github-id = 2299951
4-
4+
5+
6+
[permissions]
7+
crates-io-ops-bot.staging_crates_io = true

src/permissions.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ macro_rules! permissions {
5959
)*
6060
#[serde(default)]
6161
bors: BorsPermissions,
62+
#[serde(default)]
6263
crates_io_ops_bot: CratesIoOps,
6364
}
6465

@@ -100,7 +101,7 @@ macro_rules! permissions {
100101
)*
101102
$(
102103
if permission == concat!("crates_io_ops_app", stringify!($crates_io_ops_app)) {
103-
return self.$crates_io_ops_app;
104+
return self.crates_io_ops_bot.$crates_io_ops_app
104105
}
105106
)*
106107
false
@@ -153,8 +154,6 @@ macro_rules! permissions {
153154
}
154155
}
155156
}
156-
157-
158157
}
159158
}
160159

@@ -181,6 +180,8 @@ permissions! {
181180
team,
182181
}
183182
crates_io_ops_apps {
183+
crates_io,
184+
staging_crates_io,
184185
}
185186
}
186187

teams/infra.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ perf = true
2121
crater = true
2222
bors.rust.review = true
2323
bors.crater.review = true
24-
crates_io_ops_app.crates_io_staging = true
2524

2625
[rfcbot]
2726
label = "T-infra"

0 commit comments

Comments
 (0)