chore(ci): remove broken Microsoft apt sources before apt-get update

GitHub-hosted Ubuntu 24.04 runners include Microsoft package repos
(azure-cli, packages.microsoft.com/ubuntu/24.04/prod) in their default
apt sources. These repos intermittently return 403 Forbidden, causing
apt-get update to fail with exit code 100 even though none of our
dependencies come from those repos.

Remove the Microsoft source list files and their signing keys before
running apt-get update so transient Microsoft CDN outages don't break
unrelated CI jobs.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
This commit is contained in:
npub1fgdl5qqnh3k3f2xkqrvt7cujalhm623x4s7fdjdj5yrtp5fzjl9qrjpucw
2026-06-25 14:24:54 -04:00
co-authored by Will Pfleger
parent 9a59e30817
commit caa426a27a
2 changed files with 14 additions and 0 deletions
+7
View File
@@ -114,6 +114,13 @@ jobs:
with:
workspaces: desktop/src-tauri
save-if: ${{ github.event_name != 'pull_request' }}
- name: Remove broken Microsoft apt sources
run: |
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list \
/etc/apt/sources.list.d/azure-cli.list \
/etc/apt/sources.list.d/packages.microsoft.com.list
sudo rm -f /etc/apt/trusted.gpg.d/microsoft.gpg \
/etc/apt/trusted.gpg.d/microsoft-prod.gpg
- name: Install Tauri dependencies (Linux)
env:
DEBIAN_FRONTEND: noninteractive
+7
View File
@@ -463,6 +463,13 @@ jobs:
workspaces: desktop/src-tauri
lookup-only: true
- name: Remove broken Microsoft apt sources
run: |
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list \
/etc/apt/sources.list.d/azure-cli.list \
/etc/apt/sources.list.d/packages.microsoft.com.list
sudo rm -f /etc/apt/trusted.gpg.d/microsoft.gpg \
/etc/apt/trusted.gpg.d/microsoft-prod.gpg
- name: Install Tauri dependencies (Linux)
env:
DEBIAN_FRONTEND: noninteractive