Skip to content

fix: fix security vulnerabilities reported by CodeQL #5467

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

Merged
merged 2 commits into from
Dec 19, 2022

Conversation

deansheather
Copy link
Member

Fixes the vulnerabilities reported by CodeQL in #5279.

@deansheather deansheather added the security Area: security label Dec 19, 2022
@deansheather deansheather requested a review from a team as a code owner December 19, 2022 18:31
@deansheather deansheather requested review from jsjoeio and removed request for a team and jsjoeio December 19, 2022 18:31
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had two questions but otherwise looks good! 👍

codersdk.GitProviderBitBucket: regexp.MustCompile(`bitbucket\.org`),
codersdk.GitProviderGitLab: regexp.MustCompile(`gitlab\.com`),
codersdk.GitProviderGitHub: regexp.MustCompile(`github\.com`),
codersdk.GitProviderAzureDevops: regexp.MustCompile(`^(https?:\/\/)?dev\.azure\.com(\/.*)?$`),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does forward slash need to be escaped here? It’s often a separator in regexes, requiring the escape, but unsure if needed here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you're right, I'll remove the slashes

@deansheather deansheather enabled auto-merge (squash) December 19, 2022 19:23
@deansheather deansheather merged commit 1bc4eb5 into main Dec 19, 2022
@deansheather deansheather deleted the dean/fix-codeql-fixes branch December 19, 2022 19:26
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
security Area: security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants