googleapis / repo-automation-bots

A collection of bots, based on probot, for performing common maintenance tasks across the open-source repos managed by Google on GitHub.
Apache License 2.0
628 stars 128 forks source link

[owlbot]: release-conductor repository causing errors in logs #3282

Closed bcoe closed 2 years ago

bcoe commented 2 years ago

👇

Screenshot 2022-03-10 11 43 57 AM

SurferJeffAtGoogle commented 2 years ago

I think this is happening in the app.on('pull_request.closed' handler here: https://github.com/googleapis/repo-automation-bots/blob/4cf80852e3e9f66789331362a65de10558868c59/packages/owl-bot/src/owl-bot.ts#L252

It's attempting to clone the repo, but the repo is private, so it needs a token. The context provided to app.on contains an octokit, but I see no way to obtain a token. @bcoe How can I get a token?

SurferJeffAtGoogle commented 2 years ago

Downgrading to P3 because although there's an error in the log, I don't intend to run Owl Bot on this repo now or in the foreseeable future.

bcoe commented 2 years ago

@SurferJeffAtGoogle there's a privateKey available in the context of the service, which can be used to fetch a token. the GitHub API attached to the context itself hides the token.

SurferJeffAtGoogle commented 2 years ago

I archived https://github.com/googleapis/release-conductor. Maybe we'll unarchive it in a few months.