Skip to content

Commit e33a7be

Browse files
Copilotthenot-lab
andcommitted
Use runner.temp for PR body file instead of /tmp for better security
Co-authored-by: thenot-lab <246272765+thenot-lab@users.noreply.github.com>
1 parent 7932de8 commit e33a7be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/scaffold-build-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
env:
114114
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
115115
run: |
116-
cat > /tmp/pr_body.md <<'EOFBODY'
116+
cat > ${{ runner.temp }}/pr_body.md <<'EOFBODY'
117117
This PR was automatically created by the scaffold workflow.
118118
119119
## Changes
@@ -126,7 +126,7 @@ jobs:
126126
EOFBODY
127127
gh pr create \
128128
--title "Auto-scaffold: Add minimal Kivy app and buildozer config" \
129-
--body-file /tmp/pr_body.md \
129+
--body-file ${{ runner.temp }}/pr_body.md \
130130
--label "automated" \
131131
--label "scaffold" \
132132
--head "${{ steps.scaffold.outputs.branch_name }}" \

0 commit comments

Comments
 (0)