Configure shared OpenArtifact publisher and dk2b RC repository
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 7s

This commit is contained in:
ab committed 2026-11-29 17:00:25 +02:00
1 parent 2223dbf619
commit 50e3e88387
2 files changed
+50 -5

No files matched your search

+3 -3
View File
@@ -35,8 +35,8 @@ try:
"manifest": Path("/config/winget-publisher.yaml").read_text(),
}))
items = publisher["items"]
if len(items) != 3 or any(item["result"] != "applied" for item in items):
raise RuntimeError("OpenArtifact did not apply the WinGet publisher policy")
print("WinGet publisher policy applied")
if len(items) != 7 or any(item["result"] != "applied" for item in items):
raise RuntimeError("OpenArtifact did not apply the OpenArtifact package publisher policy")
print("OpenArtifact package publisher policy applied")
finally:
post("auth/logout", {})
+47 -2
View File
@@ -3,7 +3,7 @@ kind: ServiceAccount
metadata:
name: github-winget
spec:
description: Publishes the Hexor WinGet catalog from GitHub Actions
description: Publishes the Hexor WinGet catalog and registered dk2b/Tsunagi Arch packages
---
apiVersion: openartifact.io/v1
kind: PermissionTarget
@@ -32,8 +32,53 @@ spec:
- claim: repository_id
patterns: ['678451959']
- claim: event_name
patterns: [repository_dispatch, workflow_dispatch]
patterns: [schedule, repository_dispatch, workflow_dispatch]
- claim: ref
patterns: ['refs/heads/main']
- claim: workflow_ref
patterns: ['house-of-vanity/arch_repo/.github/workflows/publish-winget.yml@refs/heads/main']
---
apiVersion: openartifact.io/v1
kind: PermissionTarget
metadata:
name: github-openartifact-pacman
spec:
# Only package identities registered for the first two producers are writable.
repository_filter: '^hexor-pacman(-testing)?$'
path_pattern: '^os/(x86_64|aarch64|armv7h)/(dk2b|tsunagi|tsunagi-gui)-[0-9][^/]*\.pkg\.tar\.zst$'
actions: [read, write]
assignments:
users: [github-winget]
---
apiVersion: openartifact.io/v1
kind: PermissionTarget
metadata:
name: github-openartifact-pacman-index
spec:
repository_filter: '^hexor-pacman(-testing)?$'
path_pattern: '^os/(x86_64|aarch64|armv7h)/[^/]+\.db(\.tar\.gz)?$'
actions: [read]
assignments:
users: [github-winget]
---
apiVersion: openartifact.io/v1
kind: PermissionTarget
metadata:
name: github-dk2b-pacman-rc
spec:
repository_filter: '^hexor-pacman-rc$'
path_pattern: '^os/x86_64/dk2b-[0-9][^/]*\.pkg\.tar\.zst$'
actions: [read, write]
assignments:
users: [github-winget]
---
apiVersion: openartifact.io/v1
kind: PermissionTarget
metadata:
name: github-dk2b-pacman-rc-index
spec:
repository_filter: '^hexor-pacman-rc$'
path_pattern: '^os/x86_64/[^/]+\.db(\.tar\.gz)?$'
actions: [read]
assignments:
users: [github-winget]