Giter Site home page Giter Site logo

roblox / cla-signature-bot Goto Github PK

View Code? Open in Web Editor NEW
14.0 7.0 13.0 19.1 MB

GitHub Action for self-contained handling of CLA signatures

License: Apache License 2.0

TypeScript 99.67% JavaScript 0.33%
action contributor-license-agreement roblox

cla-signature-bot's Issues

Add GitHub App auth support

Currently the app needs a PAT (tied to a specific account) to perform auth for the remote repository. Modify this to allow for GitHub App auth instead, allowing the action to authenticate as an app. The app should only need repo read/write scopes to be able to read and write to the cla.json file in the remote repo, nothing more.

Download Problem

Describe the bug
I try to use the CLA-Signature bot with the described configuration. The bot is started but cannot be downloaded. The error message is

Failed to resolve action download info. Error: Unable to resolve action `Roblox/[email protected]`, unable to find version `2.0.1`

I tried the following definitions for uses in the script:

To Reproduce
Steps to reproduce the behavior:

  1. Use the script as defined in https://github.com/Roblox/cla-signature-bot/blob/master/README.md
  2. In an existing issue on your repository, add a new comment
  3. Go to the Actions tab of your repository to see the error

Expected behavior
GitHub actions should be able to download the bot.

Log

Current runner version: '2.275.1'
Operating System
Virtual Environment
Prepare workflow directory
Prepare all required actions
Getting action download info
Failed to resolve action download info. Error: Unable to resolve action `Roblox/[email protected]`, unable to find version `2.0.1`
Retrying in 20.256 seconds
Failed to resolve action download info. Error: Unable to resolve action `Roblox/[email protected]`, unable to find version `2.0.1`
Retrying in 11.918 seconds
Error: Failed to resolve action download info.

Improper handling of fork CLA checks

Describe the bug

When opening a fork-based PR the secret value for the remote repo PAT is not supplied for security reasons. This causes an error as that input is marked as required and it is blank.

To Reproduce

Open a PR from a fork.

Suggested fix:

Add a unit test for this situation as it should be handled gracefully. The remote repo should be anonymous-readable so that the PAT is not mandatory for read operations.

On the other hand, if we attempt to write to a remote repo while we lack a remote repo PAT we should fail.

Centralized whitelist

It requires some duplicated effort to maintain an employee whitelist across many repositories in the same organization.

It would be great to support pulling the contributor whitelist from a central repository, perhaps the same repository that contains who has signed the CLA.

Add support for teams

The current recommendation is that employees be added to the whitelist for the CLA bot, but this needs to be done for each employee for each repo. Some way to automate this would help a lot. Probably the simplest option would be to allow the bot to accept teams in its whitelist.

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.