Skip to content

Commit abed5f1

Browse files
committed
ci: replace webfactory/ssh-agent with inline ssh-agent setup
1 parent 4847685 commit abed5f1

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/release-validated.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,14 @@ jobs:
167167
echo "::error::Pre-release tests failed. Cannot proceed with release."
168168
exit 1
169169
170-
- uses: webfactory/ssh-agent@e83874834305fe9a4a2997156cb26c5de65a8555 # v0.10.0
171-
with:
172-
ssh-private-key: ${{ secrets.SSH_PUSH_SECRET }}
170+
- name: Setup SSH agent
171+
run: |
172+
eval $(ssh-agent -s)
173+
echo "${{ secrets.SSH_PUSH_SECRET }}" | ssh-add -
174+
mkdir -p ~/.ssh
175+
ssh-keyscan github.com >> ~/.ssh/known_hosts
176+
echo "SSH_AUTH_SOCK=$SSH_AUTH_SOCK" >> $GITHUB_ENV
177+
echo "SSH_AGENT_PID=$SSH_AGENT_PID" >> $GITHUB_ENV
173178
174179
- name: Checkout repository
175180
run: git clone git@github.com:$GITHUB_REPOSITORY.git java-profiler

0 commit comments

Comments
 (0)