Skip to content

Commit 0c79010

Browse files
committed
fix(security): resolve Hypatia findings (timeouts, gates, pinning)
1 parent 9f5c8e9 commit 0c79010

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/mirror.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ jobs:
1515
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1616
with:
1717
fetch-depth: 0
18-
- uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
18+
- if: ${{ env.SSH_PRIVATE_KEY != '' }}
19+
uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
1920
with:
2021
ssh-private-key: ${{ secrets.GITLAB_SSH_KEY }}
2122
- name: Mirror to GitLab
@@ -31,7 +32,8 @@ jobs:
3132
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3233
with:
3334
fetch-depth: 0
34-
- uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
35+
- if: ${{ env.SSH_PRIVATE_KEY != '' }}
36+
uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
3537
with:
3638
ssh-private-key: ${{ secrets.BITBUCKET_SSH_KEY }}
3739
- name: Mirror to Bitbucket
@@ -47,7 +49,8 @@ jobs:
4749
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4850
with:
4951
fetch-depth: 0
50-
- uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
52+
- if: ${{ env.SSH_PRIVATE_KEY != '' }}
53+
uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
5154
with:
5255
ssh-private-key: ${{ secrets.CODEBERG_SSH_KEY }}
5356
- name: Mirror to Codeberg
@@ -63,7 +66,8 @@ jobs:
6366
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6467
with:
6568
fetch-depth: 0
66-
- uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
69+
- if: ${{ env.SSH_PRIVATE_KEY != '' }}
70+
uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
6771
with:
6872
ssh-private-key: ${{ secrets.SOURCEHUT_SSH_KEY }}
6973
- name: Mirror to SourceHut
@@ -79,7 +83,8 @@ jobs:
7983
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8084
with:
8185
fetch-depth: 0
82-
- uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
86+
- if: ${{ env.SSH_PRIVATE_KEY != '' }}
87+
uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
8388
with:
8489
ssh-private-key: ${{ secrets.DISROOT_SSH_KEY }}
8590
- name: Mirror to Disroot
@@ -95,7 +100,8 @@ jobs:
95100
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
96101
with:
97102
fetch-depth: 0
98-
- uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
103+
- if: ${{ env.SSH_PRIVATE_KEY != '' }}
104+
uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
99105
with:
100106
ssh-private-key: ${{ secrets.GITEA_SSH_KEY }}
101107
- name: Mirror to Gitea

0 commit comments

Comments
 (0)