Skip to content

Commit 61a7843

Browse files
TGJLSclaude
andcommitted
Replace gh release download with Invoke-WebRequest for AdaptixC2
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 425bc6a commit 61a7843

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/test.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ on:
1717

1818
env:
1919
ADAPTIXC2_REPO: Adaptix-Framework/AdaptixC2
20+
ADAPTIXC2_VERSION: v1.2
2021
CI_USER: ci_runner
2122
CI_PASS: Ci_Test_Pass1!
2223
CI_AGENT_DIR: 'C:\ci'
@@ -66,15 +67,10 @@ jobs:
6667

6768
- name: Download AdaptixC2 release
6869
shell: powershell
69-
env:
70-
GH_TOKEN: ${{ github.token }}
7170
run: |
7271
New-Item -ItemType Directory -Force -Path C:\tmp\adaptixc2 | Out-Null
73-
$tag = (gh release list --repo $env:ADAPTIXC2_REPO --limit 1 --json tagName --jq '.[0].tagName')
74-
gh release download $tag `
75-
--repo $env:ADAPTIXC2_REPO `
76-
--pattern "*.zip" `
77-
--dir C:\tmp\adaptixc2
72+
$url = "https://github.com/$env:ADAPTIXC2_REPO/archive/refs/tags/$env:ADAPTIXC2_VERSION.zip"
73+
Invoke-WebRequest -Uri $url -OutFile C:\tmp\adaptixc2\adaptixc2.zip
7874
7975
# ── WSL: Ubuntu with required packages ──────────────────────────────────
8076

@@ -93,7 +89,7 @@ jobs:
9389
shell: wsl-bash {0}
9490
run: |
9591
mkdir -p /tmp/adaptixc2
96-
unzip -o /mnt/c/tmp/adaptixc2/*.zip -d /tmp/adaptixc2
92+
unzip -o /mnt/c/tmp/adaptixc2/adaptixc2.zip -d /tmp/adaptixc2
9793
# move contents out of the top-level directory the zip creates
9894
shopt -s dotglob; top=$(ls -d /tmp/adaptixc2/*/); mv "$top"* /tmp/adaptixc2/; rmdir "$top"
9995

0 commit comments

Comments
 (0)