fix: renew public grants and verify source identity and visibility

This commit is contained in:
Thomas Durieux committed 2026-09-13 15:05:43 +00:00
1 parent 8efb9bd506
commit 5e5cc6e0c2
6 files changed
+79 -27

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ export default class PullRequest {
}
async getToken() {
if (this._model.githubAccess?.kind === "github-app") return boundAppToken(this.owner.id, this._model.githubAccess);
if (this._model.githubAccess?.kind === "github-app") return boundAppToken(this.owner.id, this._model.githubAccess, this._model.source.repositoryFullName);
return (await getCredentialToken(this.owner.id, "github", { collection: "anonymizedpullrequests", id: this._model._id })) || config.GITHUB_TOKEN;
}