Skip to content

Commit e096e5b

Browse files
author
Mark Saroufim
authored
Update amd_workflow.yml (#276)
* Update amd_workflow.yml * Update amd_workflow.yml * Update amd_workflow.yml * Update amd_workflow.yml * Update amd_workflow.yml * Update nvidia_workflow.yml
1 parent 707f703 commit e096e5b

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

.github/workflows/amd_workflow.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,14 @@ jobs:
2727
- name: Create input files
2828
shell: bash
2929
run: |
30-
cat > "payload.json" <<'EOL'
31-
${{ github.event.inputs.payload }}
32-
EOL
30+
# Extract the payload content without printing it
31+
PAYLOAD=$(jq -r '.inputs.payload' $GITHUB_EVENT_PATH)
32+
33+
# Apply mask to the extracted content
34+
echo "::add-mask::$PAYLOAD"
35+
36+
# Now write to file (won't be logged since it's masked)
37+
echo "$PAYLOAD" > payload.json
3338
3439
- name: Set venv directory based on runner
3540
run: |

.github/workflows/nvidia_workflow.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,14 @@ jobs:
2828
- name: Create input files
2929
shell: bash
3030
run: |
31-
cat > "payload.json" <<'EOL'
32-
${{ github.event.inputs.payload }}
33-
EOL
31+
# Extract the payload content without printing it
32+
PAYLOAD=$(jq -r '.inputs.payload' $GITHUB_EVENT_PATH)
33+
34+
# Apply mask to the extracted content
35+
echo "::add-mask::$PAYLOAD"
36+
37+
# Now write to file (won't be logged since it's masked)
38+
echo "$PAYLOAD" > payload.json
3439
3540
- name: Install uv
3641
uses: astral-sh/setup-uv@v3

0 commit comments

Comments
 (0)