Giter VIP home page Giter VIP logo

Comments (6)

gal-legit avatar gal-legit commented on May 25, 2024 1

@carltonmason looks like your token is a classic one.
I opened a separate issue to remove the prefix limitation for GHES: #42

from legitify.

carltonmason avatar carltonmason commented on May 25, 2024

Glad I looked as I was going to open an issue requesting support for GitHub Enterprise.

This is what I get when I try against our IBM GHE:

 go run main.go analyze --org https://github.ibm.com/CICD-CPP-Ops --namespace repository
 ___      _______  _______  ___   _______  ___   _______  __   __
|   |    |       ||       ||   | |       ||   | |       ||  | |  |
|   |    |    ___||    ___||   | |_     _||   | |    ___||  |_|  |
|   |    |   |___ |   | __ |   |   |   |  |   | |   |___ |       |
|   |___ |    ___||   ||  ||   |   |   |  |   | |    ___||_     _|
|       ||   |___ |   |_| ||   |   |   |  |   | |   |      |   |
|_______||_______||_______||___|   |___|  |___| |___|      |___|
By Legit Security

Error: GitHub token seems invalid (should start with "ghp_"
2022/11/10 14:03:19 error executing command: GitHub token seems invalid (should start with "ghp_"
exit status 1

Thanks

from legitify.

noamd-legit avatar noamd-legit commented on May 25, 2024

Hey @carltonmason
What kind of GitHub token are you using?

from legitify.

carltonmason avatar carltonmason commented on May 25, 2024

A GHE personal access token. The token does not start with "ghp...".

from legitify.

gal-legit avatar gal-legit commented on May 25, 2024

@carltonmason is that a fine-grained token?
If this is a classic token that doesn't have the ghp_ prefix, then we can remove this check for GHES (which was just merged #40)

from legitify.

carltonmason avatar carltonmason commented on May 25, 2024

I am not sure if its a fine-grain token or how to tell if it is. I have several GHE tokens and think the one I am using is:
image

from legitify.

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.