Skip to content

Fix AUR publish SSH handling in release workflow#3

Merged
codelif merged 2 commits into
mainfrom
copilot/fix-release-artifacts-and-aur-job-again
Jun 8, 2026
Merged

Fix AUR publish SSH handling in release workflow#3
codelif merged 2 commits into
mainfrom
copilot/fix-release-artifacts-and-aur-job-again

Conversation

Copilot AI commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

The Release artifacts and AUR GitHub Actions job was failing during AUR publish because SSH host/key handling was not consistently applied to git operations in the push step. This change makes AUR git clone/push use explicit SSH settings in that step.

  • Workflow fix: enforce SSH config for AUR git operations

    • Updated .github/workflows/release.yml in Push AUR packages to export GIT_SSH_COMMAND before any git remote operation.
    • This ensures git uses the injected AUR key, enforces identity selection, and uses the expected known-hosts file.
  • Why this addresses the failure

    • Prevents Host key verification failed during git clone/git push to aur.archlinux.org.
    • Aligns SSH behavior across all git invocations in the step instead of relying on ambient ssh config resolution.
- name: Push AUR packages
  if: env.AUR_SSH_PRIVATE_KEY != ''
  run: |
    export GIT_SSH_COMMAND="ssh -i $HOME/.ssh/aur -o IdentitiesOnly=yes -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=$HOME/.ssh/known_hosts"
    mkdir -p "$RUNNER_TEMP/aur"
    # clone/commit/push loop...

Copilot AI changed the title [WIP] Fix failing GitHub Actions job Release artifacts and AUR Fix AUR publish SSH handling in release workflow Jun 8, 2026
Copilot AI requested a review from codelif June 8, 2026 20:53
@codelif codelif marked this pull request as ready for review June 8, 2026 20:54
@codelif codelif merged commit 47b7c39 into main Jun 8, 2026
5 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.

2 participants