Skip to content

Commit 5cfee6d

Browse files
committed
Handle '/releases/download'
1 parent fd01dc6 commit 5cfee6d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

monitor/mitm_plugin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,8 @@ def get_permission(self, path, method, query):
321321
if method == 'GET' and self.is_public_repo(f'{path_segments[2]}/{path_segments[3]}'):
322322
return []
323323
return [('contents', 'read' if method == 'GET' else 'write')]
324+
elif path_segments[3] == 'releases' and path_segments[4] == 'download':
325+
return []
324326
elif path_segments[1] == 'repos' and path_segments[4] == 'deployments':
325327
return [('deployments', 'read' if method == 'GET' else 'write')]
326328
# Issues are covered by the mapping above

0 commit comments

Comments
 (0)