Skip to content

Fix release deploy: add ssh-keyscan for known_hosts (1.6.x)#94

Merged
offtherailz merged 1 commit into
geosolutions-it:1.6.xfrom
offtherailz:fix-release-keyscan-1.6.x
Jul 22, 2026
Merged

Fix release deploy: add ssh-keyscan for known_hosts (1.6.x)#94
offtherailz merged 1 commit into
geosolutions-it:1.6.xfrom
offtherailz:fix-release-keyscan-1.6.x

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 merged commit 7865957 into geosolutions-it:1.6.x Jul 22, 2026
1 check 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