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 39
39
# Apply mask to the extracted content
40
40
echo "::add-mask::$PAYLOAD"
41
41
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
44
51
45
52
- name: Set venv directory based on runner
46
53
run: |
Original file line number Diff line number Diff line change @@ -46,13 +46,15 @@ jobs:
46
46
# Apply mask to the extracted content
47
47
echo "::add-mask::$PAYLOAD"
48
48
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
56
58
57
59
- name: Setup Python environment
58
60
shell: bash
Original file line number Diff line number Diff line change 5
5
},
6
6
"main" : " main.py" ,
7
7
"mode" : " script"
8
- }
8
+ }
You can’t perform that action at this time.
0 commit comments