Skip to content

Commit eed60d5

Browse files
chore: fix escrow workflow (#406)
* chore: fix escrow workflow [PE-1281] * chore: limit escrow workflow clone depth [PE-1281] * chore: use actions/checkout@v6 [PE-1281] * chore: use ssh IdentitiesOnly option [PE-1281]
1 parent 9e9d824 commit eed60d5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/escrow.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v6
1414

1515
- name: Get repository name
1616
run: echo "REPOSITORY_NAME=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
@@ -53,11 +53,11 @@ jobs:
5353
git config --global user.email "[email protected]"
5454
git config --global user.name "gr4vy-code"
5555
ssh-keyscan -H github.com > ~/.ssh/known_hosts
56-
GIT_SSH='ssh -i ~/.ssh/id_ed25519 -o UserKnownHostsFile=~/.ssh/known_hosts'
56+
GIT_SSH='ssh -i ~/.ssh/id_ed25519 -o UserKnownHostsFile=~/.ssh/known_hosts -o IdentitiesOnly=yes'
5757
5858
# clone the storage repo
5959
CLONE_DIR=$(mktemp -d)
60-
GIT_SSH_COMMAND=$GIT_SSH git clone [email protected]:gr4vy-escrow/software-escrow.git "$CLONE_DIR"
60+
GIT_SSH_COMMAND=$GIT_SSH git clone --depth 1 [email protected]:gr4vy-escrow/software-escrow.git "$CLONE_DIR"
6161
6262
# copy the new encrypted archive file
6363
cp -R "${{ runner.temp }}/${{ env.REPOSITORY_NAME }}.tar.gz.gpg" "$CLONE_DIR"
@@ -69,5 +69,3 @@ jobs:
6969
git commit --message "$INPUT_COMMIT_MESSAGE"
7070
GIT_SSH_COMMAND=$GIT_SSH git push -u origin main
7171
72-
echo "commit_hash=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
73-

0 commit comments

Comments
 (0)