Skip to content

Commit d4c9bc1

Browse files
committed
Add check for non-public feed URLs
1 parent 6d81d36 commit d4c9bc1

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎.github/workflows/pr-checks.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,14 @@ jobs:
9595
- name: Checkout repository
9696
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
9797

98+
- name: Check for incorrect addresses in package-lock.json
99+
run: |
100+
if git grep -nE '(pkgs\.visualstudio\.com|pkgs\.dev\.azure\.com|packagefeedproxy\.microsoft\.io)' -- \
101+
'package-lock.json'; then
102+
echo "::error::package-lock.json contains internal package feed URLs. Replace them with public registry URLs."
103+
exit 1
104+
fi
105+
98106
- name: Set up Node.js
99107
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
100108
with:

0 commit comments

Comments
 (0)