mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-21 23:11:39 +02:00
fix: renew public grants and verify source identity and visibility
This commit is contained in:
1 parent
8efb9bd506
commit
5e5cc6e0c2
6 files changed
+79
-27
No files matched your search
@@ -304,7 +304,7 @@ export async function getToken(repository: Repository) {
|
||||
}
|
||||
}
|
||||
if (repository.model.githubAccess?.kind === "github-app") {
|
||||
return boundAppToken(repository.owner.id, repository.model.githubAccess);
|
||||
return boundAppToken(repository.owner.id, repository.model.githubAccess, repository.model.source.repositoryName);
|
||||
}
|
||||
const credential = await getCredential(repository.owner.id);
|
||||
const ownerAccessToken = credential?.token;
|
||||
|
||||
Reference in new issue
Block a user