-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
chore: fastify auth layer implementation #3465
base: master
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,5 @@ | |||
export function getVersionFromTarball(name: string): string | void { | |||
const groups = name.match(/.+-(\d.+)\.tgz/); |
Check failure
Code scanning / CodeQL
Polynomial regular expression used on uncontrolled data
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.
^.+-(\d.+)\.tgz
should avoid this issue
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.
:( seems didn't work
good progress. looking forward to taking it out for a test drive |
Thanks :) baby steps for removing express. |
aa2ce35
to
f184e0b
Compare
@@ -0,0 +1,5 @@ | |||
export function getVersionFromTarball(name: string): string | void { | |||
const groups = name.match(/^.+-(\d.+)\.tgz/); |
Check failure
Code scanning / CodeQL
Polynomial regular expression used on uncontrolled data
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.
Here's a safe regex (according to recheck) that is also more precise 😃
/-(\d+\.\d+\.\d+)\.tgz$/
f184e0b
to
46df423
Compare
46df423
to
838d676
Compare
838d676
to
9bc3232
Compare
chore: fastify auth layer implementation
9bc3232
to
513407a
Compare
One more step for #2623