in general
ssh-keygen -t ed25519 -N "" -C "github-deploy-key" -f ./github_deploy_key_id_ed25519
if you are using webfactory/ssh-agent action from https://github.com/webfactory/ssh-agent to set the ssh key in github sam-pipeline.yml, then the comment field needs to match the url of the target repo, e.g.
ssh-keygen -t ed25519 -N "" -C "git@github.com:owner/repo.git" -f ./github_deploy_key_id_ed25519