mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-02 06:39:34 +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
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user