Skip to content

Commit 8018325

Browse files
committed
payload fixes
1 parent 92c4b05 commit 8018325

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

.github/workflows/amd_workflow.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,15 @@ jobs:
3939
# Apply mask to the extracted content
4040
echo "::add-mask::$PAYLOAD"
4141
42-
# Now write to file (won't be logged since it's masked)
43-
echo "$PAYLOAD" > payload.json
42+
# Compress and encode the payload as expected by the runner
43+
# Compress with gzip/zlib and then base64 encode
44+
echo "$PAYLOAD" | python3 -c "
45+
import sys, zlib, base64
46+
payload = sys.stdin.read()
47+
compressed = zlib.compress(payload.encode('utf-8'))
48+
encoded = base64.b64encode(compressed).decode('ascii')
49+
print(encoded)
50+
" > payload.json
4451
4552
- name: Set venv directory based on runner
4653
run: |

.github/workflows/nvidia_workflow.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,15 @@ jobs:
4646
# Apply mask to the extracted content
4747
echo "::add-mask::$PAYLOAD"
4848
49-
# Now write to file (won't be logged since it's masked)
50-
echo "$PAYLOAD" > payload.json
51-
52-
- name: Install uv
53-
uses: astral-sh/setup-uv@v3
54-
with:
55-
version: "latest"
49+
# Compress and encode the payload as expected by the runner
50+
# Compress with gzip/zlib and then base64 encode
51+
echo "$PAYLOAD" | python3 -c "
52+
import sys, zlib, base64
53+
payload = sys.stdin.read()
54+
compressed = zlib.compress(payload.encode('utf-8'))
55+
encoded = base64.b64encode(compressed).decode('ascii')
56+
print(encoded)
57+
" > payload.json
5658
5759
- name: Setup Python environment
5860
shell: bash

scripts/github_test_payload.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
},
66
"main": "main.py",
77
"mode": "script"
8-
}
8+
}

0 commit comments

Comments
 (0)