Skip to content

Commit 150853e

Browse files
committed
build-sys: Enable GPG checking for CentOS compose repos
Use gpgcheck=1 and reference the official CentOS GPG key instead of disabling signature verification. This ensures package integrity during builds while still using compose repos to avoid version skew. Assisted-by: OpenCode (Claude Sonnet 4)
1 parent 498d49a commit 150853e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

contrib/packaging/enable-compose-repos

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,18 @@ case "${ID}" in
1414
[compose-baseos]
1515
name=CentOS Stream $releasever Compose BaseOS
1616
baseurl=https://composes.stream.centos.org/stream-$releasever/production/latest-CentOS-Stream/compose/BaseOS/$basearch/os/
17-
gpgcheck=0
17+
gpgcheck=1
1818
enabled=1
1919
priority=1
20+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
2021
2122
[compose-appstream]
2223
name=CentOS Stream $releasever Compose AppStream
2324
baseurl=https://composes.stream.centos.org/stream-$releasever/production/latest-CentOS-Stream/compose/AppStream/$basearch/os/
24-
gpgcheck=0
25+
gpgcheck=1
2526
enabled=1
2627
priority=1
28+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
2729
EOF
2830
echo "Enabled CentOS Stream compose repos"
2931
;;

0 commit comments

Comments
 (0)