-
Notifications
You must be signed in to change notification settings - Fork 82
ci: adds codeql-analysis.yml for codeql execution #694
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
Conversation
This enables codeql for this repo to meet the security and stability requirements of the octokit org.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think both of what's been flagged are false positives (the one about $
definitely is)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can make the replace a global replace to appease CodeQL
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'javascript' ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be typescript
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Great catch, I'll make sure that gets updated. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there actually a difference in this? My assumption was that javascript
did cover TypeScript even though it is listed in the docs as a different language.
I'm now wondering if a bunch of my repos might have been getting only half-checked because of this 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah after reading through the docs the best strategy seemed to be to use both for any repo where the source had both TypeScript and JavaScript i.e.:
language: [ 'javascript', 'typescript' ]
< this seems to be working correctly for mixed source.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sounds like something that the default codeql workflow generator should include (at the least, mention typescript
as one of the options in it's comment) - can I assume from this you'll pass this on to the right folks at GitHub to action that, or should I open a ticket or issue somewhere?
It feels like it would be reasonable to change |
I could definitely go to the logging to server log route. I didn't want to assume I knew why that was there (Chesterton's fence and all 😉). Perhaps, @gr2m, @wolfy1339, or @G-Rath would have more historical knowledge on why the error is being returned the way it is - my assumption is that it eases debugging, but again, we should be able to post and get that from server logs. |
That has been there since the very beginnings of this project. It would make sense to remove it and log it instead |
Solid. I'll take care of it in this PR. Thanks for the 👀! |
…ge and code returned when errors happen in the middleware on requests
🎉 This PR is included in version 10.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This PR: