Skip to content

Commit 13df870

Browse files
committed
- Fixed the issue for malware scanner reversing lab download failure.
1 parent 9ad4fdc commit 13df870

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.circleci/config.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,18 @@ jobs:
4646
- run:
4747
name: Download Reverse Labs Scanner
4848
command: |
49-
curl https://dso-resources.oktasecurity.com/scanner \
50-
-H "x-api-key: $RESOURCE_TOKEN" \
49+
curl --fail --show-error --location \
50+
https://dso-resources.oktasecurity.com/scanner \
51+
-H "x-api-key: $DSO_RLSECURE_TOKEN" \
5152
--output rl_wrapper-0.0.2+35ababa-py3-none-any.whl
53+
54+
# Verify the downloaded file is a valid wheel
55+
file rl_wrapper-0.0.2+35ababa-py3-none-any.whl
56+
if ! file rl_wrapper-0.0.2+35ababa-py3-none-any.whl | grep -q "Zip archive"; then
57+
echo "ERROR: Downloaded file is not a valid wheel archive"
58+
cat rl_wrapper-0.0.2+35ababa-py3-none-any.whl
59+
exit 1
60+
fi
5261
# Install the wrapper that was downloaded
5362
- run:
5463
name: Install RL Wrapper
@@ -88,4 +97,4 @@ workflows:
8897
jobs:
8998
- reversing-labs:
9099
context:
91-
- okta-dcp
100+
- static-analysis

0 commit comments

Comments
 (0)