.github: ci.yml: move AWS auth to just before it's needed - #3018
Conversation
Avoids an AWS auth failure stopping the rest of the deployment targets from receiving updated images, and avoids unrelated steps from having access to an authenticated AWS user
✅ READY TO MERGE (Automated PR Review — round 1)
When Cockpit cuts a stable release, the release job logs into Amazon's file storage so it can drop a copy of the installer at a fixed "latest stable" address. That login used to happen near the start of the job, before the installers were even built, so if the login failed nothing else got published either — no installer on the GitHub release page, no auto-update file. This moves the login to the last possible moment, right before the one command that needs it. Everything else in the release now finishes first, and the rest of the job no longer runs while holding live cloud credentials. What still needs attentionNothing is open — no findings were raised this round. Change map — what was established before judgingClaims The PR body asserts two effects; both check out.
Also worth stating plainly, since neither the body nor the diff says it: the step is gated on Failure site — not a bug fix in the product sense, but the misbehaving arrangement is in the diff: the auth step's old position at Entry points
Nothing else in the job changed. No step was added, removed, renamed, or re-conditioned — the 8 added lines are byte-identical to the 8 removed ones. Invariants The move relies on two rules:
Failure paths after the change (this file is under
Sections with nothing to report (11)1. Correctness & Implementation Bugs — ✅ (traced every consumer of the credentials: a tree-wide 2. Persistence & User Data — ✅ (no 3. AGENTS.md Adherence — ✅ (8 lines removed and the same 8 re-added with no edit; no rename, reorder, reflow, new dependency, or unused groundwork, and the diff matches the stated purpose exactly) 4. Security — ✅ (the same two 5. Performance — ✅ (the relocated step is one-shot per stable release per matrix leg, per the entry-point walk; no runtime code, no bundle, and no wall-clock change to any job) 6. UI / UX — ✅ (no 7. Code Quality & Style — ✅ ( 8. Commit Hygiene — ✅ (one commit for one logical change; 9. Tests — ✅ (no test touched or weakened; the 10. Documentation — ✅ (nothing in the Lite/Standalone README table changes; on a successful run the published artifacts and their URLs are byte-for-byte what they were) 11. Nitpicks / Optional — ✅ (read the moved block against the Generated by Claude. This is advisory; a human reviewer must still approve. |
Applies an improvement spurred by the #3017 (backport) review.
Avoids an AWS auth failure stopping the rest of the deployment targets from receiving updated images, and avoids unrelated steps from having access to an authenticated AWS user.
This makes the electron deployment better match what was already being done for the flatpak deployment (defined just underneath it).