Skip to content

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

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#13
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

This 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, so apt silently Igns the source and apt-get update succeeds without it.

[trusted=yes] skips GPG signature verification for that single source.

Validation

Tested in IComparable-Extensions#69, promoted to canonical in repo-template#336. This PR is part of the rollout to the 18 affected repos.

The 'Install OpenSSL 1.1 for .NET 5.0' step was failing on newer
GitHub-hosted Ubuntu runners. [trusted=yes] skips GPG verification
so the source isn't silently ignored. Validated by
IComparable-Extensions#69; canonical equivalent in repo-template#336.

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:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the CI workflow to make the “Install OpenSSL 1.1 for .NET 5.0” step succeed on newer Ubuntu GitHub-hosted runners by altering the focal-security APT source configuration.

Changes:

  • Mark the focal-security APT source as trusted ([trusted=yes]) so apt-get update does not ignore it when the signing key is missing.
  • Unblock installation of libssl1.1 needed for .NET 5.0 on newer Ubuntu images.

Comment thread .github/workflows/pr.yaml Outdated
Comment on lines 330 to 331
echo "deb [trusted=yes] https://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list
sudo apt-get update -q
Comment thread .github/workflows/pr.yaml Outdated
- name: Install OpenSSL 1.1 for .NET 5.0
run: |
echo "deb https://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list
echo "deb [trusted=yes] https://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list
Addresses Copilot's review on repo-template#336: [trusted=yes] disables
GPG verification entirely. signed-by=/usr/share/keyrings/ubuntu-archive-keyring.gpg
pins the source to the Ubuntu archive keyring shipped in every runner
image, so libssl1.1 is still signature-verified.

Matches repo-template main after #336 merged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Chris-Wolfgang Chris-Wolfgang merged commit 8d312fa into main May 5, 2026
5 of 7 checks passed
@Chris-Wolfgang Chris-Wolfgang deleted the chore/fix-libssl1-apt-source branch May 5, 2026 02:39
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