-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Potential problem with github.utils.fileContents #245
Comments
It's weird because Peril managed to comment in the PR, so it obviously got the GitHub token... somewhere, but then somewhere else it doesn't anymore or something? |
It's possible that the GitHub API given to the create that fileContents isn't author correctly |
That'd mean something's going wrong here, right? |
Too many layers of indirection for an outside to follow 😅 Not sure where the problem could lie beyond that method, any ideas? |
Yeah, no, I woundn't recommend digging into this one! The heart of the danger runner is super complex I'm afraid But it's something around this. |
I have a long flight tomorrow where I intend to work on #240 - so I'll keep my eyes open for this too |
Sounds great to me, thank you! |
This should be fixed in #247 |
Let me know when a new release is out—I'll have to deploy a fresh version of Peril for it to update, right? |
On it—will update, then reenable and see if it's fixed! |
Thanks for the solid bug report, I should move some of my plugins to use that API too |
I definitely have all the env vars set correctly since this worked before as long as I wasn't using the GitHub API, so it's gotta be something in that same area of the code probably? Any quick gut ideas? |
Hrm, could it be #219 ? |
However, the env var to double check is |
Definitely sounds like #219 |
OK, I'll have a proper think about this over the weekend. It should be possible to add support coalescing multiple runs to all happen sycnronously without a db, devoted some time to the idea on the airplane |
Closing as a duplicate of #219 and tracking that! |
I tried adding my very own
danger-plugin-flow
to our Peril setup (https://github.com/withspectrum/peril-settings), but as soon as I did that and added an unflowtyped file (to make the plugin fail to see whether it works or not) I got a "Bad credentials" error:Any clues what could be happening here? I specifically used
github.utils.fileContents
instead offs
for Peril compat, but I might totally be missing something.The text was updated successfully, but these errors were encountered: