Skip to content

Commit 0f3d744

Browse files
committed
fix: only request org installation for googlers organization
It seems that we no longer have an installation on a specific repository, but checking via the still-active organization installation should be sufficient. This commit attempts this.
1 parent cddc66a commit 0f3d744

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

github-actions/post-approval-changes/lib/main.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ async function main() {
1515
// Use the `.github` repo from googlers to get an installation that has access to the googlers
1616
// user membership.
1717
const googlersOrgToken = await getAuthTokenFor(ANGULAR_ROBOT, {
18-
owner: 'googlers',
19-
repo: '.github',
18+
org: 'googlers',
2019
});
2120
googlersOrgClient = new Octokit({auth: googlersOrgToken});
2221

github-actions/post-approval-changes/main.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47843,8 +47843,7 @@ async function main() {
4784347843
let googlersOrgClient = null;
4784447844
try {
4784547845
const googlersOrgToken = await getAuthTokenFor(ANGULAR_ROBOT, {
47846-
owner: "googlers",
47847-
repo: ".github"
47846+
org: "googlers"
4784847847
});
4784947848
googlersOrgClient = new Octokit2({ auth: googlersOrgToken });
4785047849
const repoToken = await getAuthTokenFor(ANGULAR_ROBOT, import_github2.context.repo);

0 commit comments

Comments
 (0)