You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Verify SSH host keys in reusable mirror workflow #762
The shared reusable workflow .github/workflows/mirror-reusable.yml accepts live ssh-keyscan output as trusted host keys before it pushes mirrors over SSH.
Affected mirror jobs are GitLab, Bitbucket, Codeberg, SourceHut, Disroot, and configurable Gitea.
Required change
Replace each unchecked ssh-keyscan use with verification against approved, pinned SSH host keys or fingerprints before git push.
For the configurable Gitea host, define a secure configuration mechanism for its approved host key or fingerprint. Do not obtain the approved value from the same unauthenticated network connection that is being verified.
Rationale
An attacker that can alter DNS or the network path can provide a counterfeit SSH host key. The workflow can then push repository contents to a counterfeit endpoint.
Activity