From 5ad506d0495d96c49f0ad76e30f56d101a344b9a Mon Sep 17 00:00:00 2001 From: 0xb10c Date: Wed, 25 Sep 2024 12:42:59 +0200 Subject: [PATCH] change: download and extract compressed list in CI The CI job has been failing from time to time recently. In an attempt to improve the CI job, download the compressed SDN list. --- .github/workflows/generate-lists.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/generate-lists.yml b/.github/workflows/generate-lists.yml index 4c962b6..c2a4454 100644 --- a/.github/workflows/generate-lists.yml +++ b/.github/workflows/generate-lists.yml @@ -23,9 +23,10 @@ jobs: with: python-version: 3.11 - name: Download the sdn_advanced.xml file - uses: wei/wget@v1 - with: - args: https://www.treasury.gov/ofac/downloads/sanctions/1.0/sdn_advanced.xml + run: | + wget https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN_ADVANCED.ZIP + unzip SDN_ADVANCED.ZIP + ls -l - name: Generate TXT and JSON files for all assets run: | mkdir data