Skip to content

Commit 71b428c

Browse files
committed
EWM-497. Update fetch anti-phishing lists
1 parent f47d1d3 commit 71b428c

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.github/workflows/app-deploy.yaml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,12 @@ jobs:
7979
8080
- name: Fetch anti-phishing lists
8181
run: |
82-
curl -s https://raw.githubusercontent.com/broxus/ever-wallet-anti-phishing/master/blacklist.json \
83-
-o /tmp/blacklist1.json
84-
curl -s https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/refs/heads/main/src/config.json \
85-
-o /tmp/config.json
86-
87-
jq -s '
88-
(.[0] + .[1].blacklist)
89-
| unique
90-
| { blacklist: . }
91-
' /tmp/blacklist1.json /tmp/config.json \
92-
> anti_phishing.json
82+
curl -s https://raw.githubusercontent.com/broxus/ever-wallet-anti-phishing/master/blacklist.json -o /tmp/blacklist1.json
83+
curl -s https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/refs/heads/main/src/config.json -o /tmp/config.json
84+
mkdir -p assets/config
85+
jq -s '(.[0] + .[1].blacklist) | unique | { blacklist: . }' \
86+
/tmp/blacklist1.json /tmp/config.json \
87+
> assets/config/anti_phishing.json
9388
9489
- name: Upload anti-phishing file
9590
uses: actions/upload-artifact@v4
@@ -175,6 +170,10 @@ jobs:
175170
echo "ios_target is set to = ${{ env.ios_target }}"
176171
echo "build_mode is set to = ${{ inputs.build_mode }}"
177172
173+
- name: Remove default anti_phishing.json
174+
run: |
175+
rm -f assets/config/anti_phishing.json
176+
178177
- name: Download anti-phishing file
179178
uses: actions/download-artifact@v4
180179
with:
@@ -275,6 +274,10 @@ jobs:
275274
echo "android_target is set to = ${{ env.android_target }}"
276275
echo "build_mode is set to = ${{ inputs.build_mode }}"
277276
277+
- name: Remove default anti_phishing.json
278+
run: |
279+
rm -f assets/config/anti_phishing.json
280+
278281
- name: Download anti-phishing file
279282
uses: actions/download-artifact@v4
280283
with:

0 commit comments

Comments
 (0)