File tree Expand file tree Collapse file tree 3 files changed +19
-10
lines changed Expand file tree Collapse file tree 3 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 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: |
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 55 },
66 "main" : " main.py" ,
77 "mode" : " script"
8- }
8+ }
You can’t perform that action at this time.
0 commit comments