Skip to content
This repository was archived by the owner on Nov 12, 2026. It is now read-only.

ci: apt retries, missing timeouts, read-only permissions - #630

Merged
techmore merged 1 commit into
devfrom
ci/harden-apt-timeouts-permissions
Oct 27, 2026
Merged

techmore merged 1 commit into
devfrom
ci/harden-apt-timeouts-permissions

Conversation

@techmore

Copy link
Copy Markdown
Owner

Workflow-only hardening after today's azure.archive.ubuntu.com stalls. All techmore repos share one concurrent-job limit, so stalled or 6-hour jobs block everyone.

  • .github/actions/fast-apt: Acquire::Retries "5" and 20 s HTTP timeouts now written on every runner (previously only arm64, retries 3), before the arm64 mirror swap. Covers aurora-kernel, build-release, daily-9.0, files-image-actions, message-pins, diskspace, messages-rs, signal-import, updates-app, rust-pantheon-*, verification-codes, validate-mseries.
  • mseries-image-studio.yml: now runs fast-apt before apt.
  • Timeouts: build-release job 180 min (matches daily-9.0); proposed-9.0 comment job 5 min. (Reusable-workflow call jobs cannot take timeout-minutes.)
  • permissions: contents: read at top level for message-pins, stable-9.0, validate-mseries, verification-codes, proposed-9.0. stable-9.0's reusable call job gets contents: write (build-release asks for it). validate-mseries' job token only downloads a public tarball; uploads are artifacts.

python3 mseries/ci/workflow_policy.py and the mseries/ci unit tests pass locally; all YAML parses.

🤖 Generated with Claude Code

- fast-apt: write Acquire::Retries "5" (plus 20 s HTTP timeouts) on every
  runner before the arm64-only mirror swap, so amd64 jobs retry too.
- mseries-image-studio: use fast-apt before its apt calls.
- build-release: timeout-minutes 180 (same as daily-9.0); proposed-9.0
  comment job: timeout-minutes 5.
- Top-level permissions: contents: read on message-pins, stable-9.0,
  validate-mseries, verification-codes and proposed-9.0; stable-9.0's
  reusable call keeps contents: write for build-release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@techmore
techmore merged commit 73797e9 into dev Oct 27, 2026
24 checks passed
@techmore
techmore deleted the ci/harden-apt-timeouts-permissions branch October 28, 2026 16:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant