Skip to content

pr.yaml: add [trusted=yes] to focal-security apt source#336

Merged
Chris-Wolfgang merged 2 commits into
mainfrom
chore/fix-libssl1-apt-source
May 5, 2026
Merged

pr.yaml: add [trusted=yes] to focal-security apt source#336
Chris-Wolfgang merged 2 commits into
mainfrom
chore/fix-libssl1-apt-source

Conversation

@Chris-Wolfgang

Copy link
Copy Markdown
Owner

Summary

Adds `[trusted=yes]` to the `focal-security` apt source line in the "Install OpenSSL 1.1 for .NET 5.0" step.

Why

The step was failing on newer GitHub-hosted Ubuntu runners with `E: Package 'libssl1.1' has no installation candidate`. Root cause: the focal Ubuntu archive signing key isn't always present on newer runner images, so apt silently `Ign`'s the source (`Ign:55 ... focal-security InRelease`) and `apt-get update` succeeds without it.

`[trusted=yes]` skips GPG signature verification.

Validation

Tested in IComparable-Extensions#69 — fix confirmed working before promoting here.

Rollout

After this lands, the same one-line fix needs to propagate to ~16 other repos that have .NET 5.0 in their test matrix. A follow-up bulk PR will sync canonical pr.yaml downstream.

🤖 Generated with Claude Code

The 'Install OpenSSL 1.1 for .NET 5.0' step was failing on newer
GitHub-hosted Ubuntu runners with:

  E: Package 'libssl1.1' has no installation candidate

Root cause: the focal Ubuntu archive signing key is not always
present on newer runner images. apt silently Ign's the source
('Ign:55 ... focal-security InRelease') and apt-get update succeeds
without it, so libssl1.1 isn't in the package index when install
runs.

Adding [trusted=yes] to the apt source line skips signature
verification, letting the source be used regardless of key
availability.

Validated in IComparable-Extensions#69 before promoting here.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 5, 2026 02:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the PR workflow to make the “Install OpenSSL 1.1 for .NET 5.0” step succeed on newer GitHub-hosted Ubuntu runners by altering how the focal-security APT source is added.

Changes:

  • Adds [trusted=yes] to the focal-security APT source line to avoid failures caused by missing/unknown signing keys on some runner images.
  • Expands inline commentary in the workflow step to document the observed failure mode and validation reference.

Comment thread .github/workflows/pr.yaml Outdated
Comment thread .github/workflows/pr.yaml
This was referenced May 5, 2026
Restores end-to-end APT signature verification for the libssl1.1 install
step. Points apt at the Canonical archive keyring that already ships on
GitHub-hosted Ubuntu runners (/usr/share/keyrings/ubuntu-archive-keyring.gpg).
That keyring contains the same signing key Canonical uses across releases
(focal, jammy, noble), so it can verify focal-security packages from a
non-focal runner without [trusted=yes].

Resolves Copilot feedback on PR #336.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Chris-Wolfgang Chris-Wolfgang merged commit d8d2fb7 into main May 5, 2026
7 checks passed
@Chris-Wolfgang Chris-Wolfgang deleted the chore/fix-libssl1-apt-source branch May 5, 2026 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants