Skip to content

Commit ce04a40

Browse files
committed
Fix unsafe injection pattern
1 parent 291c5c4 commit ce04a40

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ jobs:
2323
- name: Set up .wiki remote
2424
run: git remote add dot-wiki [email protected]:ohmyzsh/ohmyzsh.wiki.git
2525
- name: Set up deploy keys to push to remote
26+
env:
27+
WIKI_DEPLOY_PRIVATE_KEY: ${{ secrets.WIKI_DEPLOY_PRIVATE_KEY }}
2628
run: |
2729
# Write deploy key to ~/.ssh/id_ed25519. Git will automatically
2830
# use ~/.ssh/id_ed25519 to log in to github.com (see `man ssh`)
2931
mkdir -p ~/.ssh
30-
echo "${{ secrets.WIKI_DEPLOY_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
32+
echo "${WIKI_DEPLOY_PRIVATE_KEY}" > ~/.ssh/id_ed25519
3133
chmod 600 ~/.ssh/id_ed25519
3234
- name: Push commits to main wiki remote
3335
run: git push --force dot-wiki HEAD:master

0 commit comments

Comments
 (0)