Skip to content

Commit c7e2fea

Browse files
Potential fix for code scanning alert no. 18: Incomplete regular expression for hostnames (#3700)
* Potential fix for code scanning alert no. 18: Incomplete regular expression for hostnames Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Potential fix for code scanning alert no. 25: Missing regular expression anchor Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * changeset --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 28b7f84 commit c7e2fea

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/strong-geckos-teach.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@chainlink/ea-scripts': patch
3+
---
4+
5+
Security fix

packages/scripts/src/schema-flatten/lib.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function createChainlinkLabsResolver() {
124124

125125
const resolver: $RefParser.ResolverOptions = {
126126
order: 1,
127-
canRead: /^https:\/\/external-adapters.chainlinklabs.com/i,
127+
canRead: /^https:\/\/external-adapters\.chainlinklabs\.com$/i,
128128
read: (file, callback) => {
129129
if (!callback) {
130130
console.error('[resolver] No callback found')

0 commit comments

Comments
 (0)