mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-15 20:59:51 +00:00
Fix unsafe injection pattern
4
.github/workflows/publish.yml
vendored
4
.github/workflows/publish.yml
vendored
@@ -23,11 +23,13 @@ jobs:
|
|||||||
- name: Set up .wiki remote
|
- name: Set up .wiki remote
|
||||||
run: git remote add dot-wiki git@github.com:ohmyzsh/ohmyzsh.wiki.git
|
run: git remote add dot-wiki git@github.com:ohmyzsh/ohmyzsh.wiki.git
|
||||||
- name: Set up deploy keys to push to remote
|
- name: Set up deploy keys to push to remote
|
||||||
|
env:
|
||||||
|
WIKI_DEPLOY_PRIVATE_KEY: ${{ secrets.WIKI_DEPLOY_PRIVATE_KEY }}
|
||||||
run: |
|
run: |
|
||||||
# Write deploy key to ~/.ssh/id_ed25519. Git will automatically
|
# Write deploy key to ~/.ssh/id_ed25519. Git will automatically
|
||||||
# use ~/.ssh/id_ed25519 to log in to github.com (see `man ssh`)
|
# use ~/.ssh/id_ed25519 to log in to github.com (see `man ssh`)
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "${{ secrets.WIKI_DEPLOY_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
|
echo "${WIKI_DEPLOY_PRIVATE_KEY}" > ~/.ssh/id_ed25519
|
||||||
chmod 600 ~/.ssh/id_ed25519
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
- name: Push commits to main wiki remote
|
- name: Push commits to main wiki remote
|
||||||
run: git push --force dot-wiki HEAD:master
|
run: git push --force dot-wiki HEAD:master
|
||||||
|
|||||||
Reference in New Issue
Block a user