Skip to content

Commit

Permalink
Change permissions for the .ssh directory
Browse files Browse the repository at this point in the history
Read permissions are given to /home/dependabot/.ssh.
  • Loading branch information
Athmika-HS committed Mar 28, 2022
1 parent b512e4d commit 461e6f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/docker-execute
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ whoami;
ls -la /home/dependabot/.ssh;
eval $(ssh-agent -s);
ssh-add;
chmod 400 /home/dependabot/.ssh;
ssh-add /home/dependabot/.ssh/$(echo $(cat /home/dependabot/.ssh/config | grep IdentityFile) | cut -d " " -f 2 | cut -d "/" -f 3);
ssh -vv -p 29418 jenkins@gerrit.helpshift.com;
for c in $(ssh -p 29418 -o "StrictHostKeyChecking no" jenkins@gerrit.helpshift.com gerrit query --current-patch-set project:${REPO_NAME} branch:feature/dependabot | grep revision | tr -s " " | cut -d " " -f 3); \
Expand Down

0 comments on commit 461e6f5

Please sign in to comment.