Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
ci(aur): stop overclaiming what the probe proves, bound it, pin the key
Etienne Lescotf5f657418c36
diff --git a/.github/workflows/aur-publish.yml b/.github/workflows/aur-publish.ymlindex 2a735fdff..fce4e0f11 100644--- a/.github/workflows/aur-publish.yml+++ b/.github/workflows/aur-publish.yml@@ -366,20 +366,33 @@ jobs:HostName aur.archlinux.orgUser aurIdentityFile ~/.ssh/aur_key+ # Offer this key and nothing else. Without it ssh walks whatever+ # else it can find first, and AUR can refuse on a key that is not+ # the one being diagnosed -- so the probe below would be reporting+ # on a different identity than the push. It is also the standard+ # cause of "permission denied" against AUR with more than one key.+ IdentitiesOnly yesStrictHostKeyChecking yesUserKnownHostsFile ~/.ssh/aur_known_hostsSSHCONF# "Permission denied (publickey)" is the same message for three different# problems: a secret that is not a readable key, a key nobody registered- # on AUR, and a key whose account is not a maintainer of this package.- # v1.9.1, v1.9.2 and v1.9.5 all died here and none of them said which.- # A public key is public, so printing it costs nothing and lets the value- # CI presents be compared against what is on the account; `ssh -T` is the- # decisive one, because AUR answers it by naming the user it authenticated.+ # on AUR, and a key registered to an account that does not maintain this+ # package. v1.9.1, v1.9.2 and v1.9.5 all died here and none said which.+ #+ # This narrows it by elimination rather than proving the last one. A+ # public key is public, so printing it costs nothing and lets what CI+ # presents be compared against what is on the account. `help` is the+ # documented way to test AUR auth without pushing: if it answers, the key+ # parses AND is registered, so only authorization for ${PACKAGE} is left.+ # Its reply also enumerates the commands the account may run, which is+ # where to look for a repo-listing one if this needs to go further.- name: Identify the key AUR seesif: steps.aur_secret.outputs.configured == 'true' && !inputs.dry_runcontinue-on-error: true+ env:+ PACKAGE: ${{ vars.AUR_PACKAGE_NAME }}run: |if ! ssh-keygen -y -f ~/.ssh/aur_key > /tmp/aur_key.pub 2>/tmp/aur_key.err; thenecho "::error::AUR_SSH_PRIVATE_KEY is not a readable private key: $(cat /tmp/aur_key.err)"@@ -388,9 +401,11 @@ jobs:echo "Public key this workflow presents:"cat /tmp/aur_key.pubssh-keygen -lf /tmp/aur_key.pub || true- echo "--- what AUR says about it ---"- # Exits non-zero by design (interactive shell disabled); the message is the payload.- ssh -o BatchMode=yes -T [email protected] 2>&1 || true+ echo "--- what AUR says about it (auth only; NOT write access to ${PACKAGE}) ---"+ # Bounded: a diagnostic must never be the thing that hangs a release.+ # Exits non-zero by design; the message is the payload.+ timeout -k 5 30 ssh -o BatchMode=yes -o ConnectTimeout=10 \+ [email protected] help 2>&1 || true- name: Commit and pushif: steps.aur_secret.outputs.configured == 'true' && !inputs.dry_run