Commit 0079d39552
Unsigned
Layout: unified · split
.github/workflows/update-aur.yml +59 −2
| @@ -122,8 +122,65 @@ jobs: | |||
| 122 | 122 | ||
| 123 | - name: Clone AUR repository | 123 | - name: Clone AUR repository |
| 124 | run: | | 124 | run: | |
| 125 | # The SSH agent should still be running with the key loaded | 125 | # Debug: Check if SSH agent is running |
| 126 | git clone ssh://aur@aur.archlinux.org/curd.git aur-curd | 126 | echo "SSH_AUTH_SOCK: $SSH_AUTH_SOCK" |
| 127 | echo "SSH_AGENT_PID: $SSH_AGENT_PID" | ||
| 128 | |||
| 129 | # Debug: List loaded keys | ||
| 130 | echo "Keys currently loaded in SSH agent:" | ||
| 131 | ssh-add -l 2>&1 || echo "No keys in agent or agent not accessible" | ||
| 132 | |||
| 133 | # Debug: Test if key file exists and has correct permissions | ||
| 134 | echo "Checking key file:" | ||
| 135 | ls -la ~/.ssh/aur_rsa | ||
| 136 | |||
| 137 | # Try to manually load the key again with debugging | ||
| 138 | echo "Attempting to load key manually..." | ||
| 139 | expect -c " | ||
| 140 | set timeout 30 | ||
| 141 | log_user 1 | ||
| 142 | spawn ssh-add -v ~/.ssh/aur_rsa | ||
| 143 | expect { | ||
| 144 | \"Enter passphrase*\" { | ||
| 145 | send \"sex\r\" | ||
| 146 | expect { | ||
| 147 | \"Identity added*\" { | ||
| 148 | puts \"SUCCESS: Key loaded\" | ||
| 149 | exit 0 | ||
| 150 | } | ||
| 151 | \"Bad passphrase*\" { | ||
| 152 | puts \"ERROR: Bad passphrase\" | ||
| 153 | exit 1 | ||
| 154 | } | ||
| 155 | timeout { | ||
| 156 | puts \"ERROR: Timeout after passphrase\" | ||
| 157 | exit 1 | ||
| 158 | } | ||
| 159 | } | ||
| 160 | } | ||
| 161 | \"*already loaded*\" { | ||
| 162 | puts \"Key already loaded\" | ||
| 163 | exit 0 | ||
| 164 | } | ||
| 165 | timeout { | ||
| 166 | puts \"ERROR: No passphrase prompt\" | ||
| 167 | exit 1 | ||
| 168 | } | ||
| 169 | eof | ||
| 170 | } | ||
| 171 | " || echo "Manual key loading failed" | ||
| 172 | |||
| 173 | # Check again if key is loaded | ||
| 174 | echo "Keys after manual loading attempt:" | ||
| 175 | ssh-add -l 2>&1 || echo "Still no keys in agent" | ||
| 176 | |||
| 177 | # Try direct SSH test with key file | ||
| 178 | echo "Testing direct SSH connection..." | ||
| 179 | ssh -o PasswordAuthentication=no -o IdentitiesOnly=yes -i ~/.ssh/aur_rsa -T aur@aur.archlinux.org 2>&1 | head -10 | ||
| 180 | |||
| 181 | # Clone with verbose output | ||
| 182 | echo "Attempting to clone with SSH debugging..." | ||
| 183 | GIT_SSH_COMMAND="ssh -v -o IdentitiesOnly=yes -i ~/.ssh/aur_rsa" git clone ssh://aur@aur.archlinux.org/curd.git aur-curd | ||
| 127 | 184 | ||
| 128 | - name: Update PKGBUILD | 185 | - name: Update PKGBUILD |
| 129 | working-directory: aur-curd | 186 | working-directory: aur-curd |