Skip to content

Fix release deploy: add ssh-keyscan for known_hosts#93

Merged
offtherailz merged 1 commit into
geosolutions-it:masterfrom
offtherailz:fix-release-keyscan-master
Jul 22, 2026
Merged

Fix release deploy: add ssh-keyscan for known_hosts#93
offtherailz merged 1 commit into
geosolutions-it:masterfrom
offtherailz:fix-release-keyscan-master

Conversation

@offtherailz

Copy link
Copy Markdown
Member

Problema

Workflow Release (release.yml, job fix-version) esegue mvn clean install deploy senza popolare ~/.ssh/known_hosts. Il deploy usa wagon-ssh (JSch, sftp://maven.geo-solutions.it), quindi la host key viene rifiutata:

reject HostKey: maven.geo-solutions.it

Run fallito: https://github.com/geosolutions-it/http-proxy/actions/runs/29906020244

Causa

CI.yml (job publish) ha lo step ssh-keyscan, release.yml no. Il deploy non e mai esercitato dai PR (il job build fa solo install), quindi la divergenza e emersa solo al dispatch della release 1.6.0.

Fix

Aggiunto lo step ssh-keyscan -H maven.geo-solutions.it >> ~/.ssh/known_hosts prima del deploy, in parita con CI.yml.

Release workflow deployed via wagon-ssh (JSch) but never populated
~/.ssh/known_hosts, so the SFTP host key was rejected. Mirror the
step already present in CI.yml.
@offtherailz offtherailz self-assigned this Jul 22, 2026
@offtherailz
offtherailz merged commit dc8cb80 into geosolutions-it:master Jul 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant