Git Product home page Git Product logo

Comments (7)

lorenzleutgeb avatar lorenzleutgeb commented on August 22, 2024 1

Sounds like #127?

from buildbot-nix.

Mic92 avatar Mic92 commented on August 22, 2024

@MagicRB is it still on your agenda to convert buildbot-nix into only using the GitHub app for everything?

from buildbot-nix.

MagicRB avatar MagicRB commented on August 22, 2024

Yep, I should get to it this weekend

@MagicRB is it still on your agenda to convert buildbot-nix into only using the GitHub app for everything?

Was planning to start earlier, but then my parents came to visit and then right after I got sick. So that ate two weeks :)

from buildbot-nix.

Mic92 avatar Mic92 commented on August 22, 2024

@MagicRB you can steal the code for re-newing GITHUB_TOKEN's from an github app from here: https://github.com/NixOS/nixpkgs-merge-bot/blob/1aad9bf9b570889da6555650f82d670fc2f73658/nixpkgs_merge_bot/github/GitHubClient.py#L218

You want to use buildbot's secret backend likely because than you can read the token from a file. Those github tokens need to be refresh every hour or so. Last time I read the buildbot code, I think there was one case where it wouldn't use the secret backend and cache the the token - but we can probably patch and upstream the fix. Unfortunately I don't recall where this was the case and if it was fixed.

from buildbot-nix.

MagicRB avatar MagicRB commented on August 22, 2024

The PR exists, the code is in place, a mess has been created: #156

Next step: refactoring

from buildbot-nix.

MagicRB avatar MagicRB commented on August 22, 2024

@lorenzleutgeb #156 is in place, is that enough for your use case? Or do you still desire file-grained PATs?

from buildbot-nix.

Mic92 avatar Mic92 commented on August 22, 2024

I believe so. Otherwise feel free to re-open this.

from buildbot-nix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.