Skip to content

Commit d6004f7

Browse files
committed
Add universal chainguard enforce commit signing config
This adds a universal chianguard enforce commit signing config. This supports all keyless and github verified signing methods, and covers all humans and trusted robots. Such config is universal, and will continue to work across repository renames and moves. If desired, the config can be locked down further but so far we haven't managed to make enforce a required check but hopefully such wide policy can actually be ratcheted to be made required as any and all signing methods are supported and trusted.
1 parent d5fcef0 commit d6004f7

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.chainguard/source.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Copyright 2025 Chainguard, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
spec:
5+
authorities:
6+
- keyless:
7+
identities:
8+
# Humans
9+
- issuer: https://github.com/login/oauth
10+
# Humans and service accounts
11+
- issuer: https://accounts.google.com
12+
# Github actions from chainguard orgs main branches
13+
- issuer: https://token.actions.githubusercontent.com
14+
subjectRegExp: ^https://github.com/chainguard-demo/.*/\.github/workflows/.*@refs/heads/main$
15+
- issuer: https://token.actions.githubusercontent.com
16+
subjectRegExp: ^https://github.com/chainguard-dev/.*/\.github/workflows/.*@refs/heads/main$
17+
- issuer: https://token.actions.githubusercontent.com
18+
subjectRegExp: ^https://github.com/chainguard-forks/.*/\.github/workflows/.*@refs/heads/main$
19+
- issuer: https://token.actions.githubusercontent.com
20+
subjectRegExp: ^https://github.com/chainguard-images/.*/\.github/workflows/.*@refs/heads/main$
21+
- issuer: https://token.actions.githubusercontent.com
22+
subjectRegExp: ^https://github.com/chainguard-sandbox/.*/\.github/workflows/.*@refs/heads/main$
23+
- issuer: https://token.actions.githubusercontent.com
24+
subjectRegExp: ^https://github.com/octo-sts/.*/\.github/workflows/.*@refs/heads/main$
25+
- issuer: https://token.actions.githubusercontent.com
26+
subjectRegExp: ^https://github.com/wolfi-dev/.*/\.github/workflows/.*@refs/heads/main$
27+
# Any github verified
28+
github:
29+
verified: true

0 commit comments

Comments
 (0)