Skip to content

Commit

Permalink
fix passing creds
Browse files Browse the repository at this point in the history
  • Loading branch information
gesarki committed Nov 26, 2024
1 parent 318e41d commit af90c57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/copybara.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ jobs:
# put the ssh_key and access_token in files
run: |
echo "${{ secrets.COPYBARA_SSH_KEY }}" > $HOME/copybara_ssh_key
echo "https://user:${{ secrets.COPYBARA_PAT }}@github.com" > $HOME/copyabara_pat
echo "https://user:${{ secrets.COPYBARA_PAT }}@github.com" > $HOME/copybara_pat
- name: Run Copybara
# run copybara and pass in the credentials files
run: |
docker run \
-v "$(pwd)":/usr/src/app \
-v $HOME/.ssh/switchboard-sdk:/root/.ssh/id_rsa \
-v $HOME/switchboard/copybara_pat.txt:/root/.git-credentials \
-v $HOME/copybara_ssh_key:/root/.ssh/id_rsa \
-v $HOME/copybara_pat:/root/.git-credentials \
gesarki/copybara:1.0.0 copy.bara.sky default ${{ github.event.number }} --force --init-history --git-committer-email "[email protected]" --git-committer-name "Github Actions"

0 comments on commit af90c57

Please sign in to comment.