Skip to content

Commit

Permalink
Potential fix for code scanning alert no. 18: Incomplete regular expr…
Browse files Browse the repository at this point in the history
…ession for hostnames

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
mxiao-cll and github-advanced-security[bot] authored Feb 25, 2025
1 parent 35e977f commit ea7531f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/scripts/src/schema-flatten/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function createChainlinkLabsResolver() {

const resolver: $RefParser.ResolverOptions = {
order: 1,
canRead: /^https:\/\/external-adapters.chainlinklabs.com/i,
canRead: /^https:\/\/external-adapters\.chainlinklabs\.com/i,

Check failure

Code scanning / CodeQL

Missing regular expression anchor High

This hostname pattern may match any domain name, as it is missing a '$' or '/' at the end.
read: (file, callback) => {
if (!callback) {
console.error('[resolver] No callback found')
Expand Down

0 comments on commit ea7531f

Please sign in to comment.