refactor: Create SigningDriver and CiDriver (#197)
This also includes a new `login` command. The signing and CI logic is now using the Driver trait system along with a new experimental sigstore signing driver. New static macros have also been created to make implementation management easier for `Command` usage and `Driver` trait implementation calls. --------- Co-authored-by: xyny <60004820+xynydev@users.noreply.github.com>
This commit is contained in:
parent
3ecb0d3d93
commit
8ce83ba7ff
63 changed files with 6468 additions and 2083 deletions
10
test-files/github-events/branch.json
Normal file
10
test-files/github-events/branch.json
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"ref": "refs/heads/test-branch",
|
||||
"repository": {
|
||||
"default_branch": "main",
|
||||
"owner": {
|
||||
"login": "test-owner"
|
||||
},
|
||||
"html_url": "https://example.com/"
|
||||
}
|
||||
}
|
||||
10
test-files/github-events/default-branch.json
Normal file
10
test-files/github-events/default-branch.json
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"ref": "refs/heads/main",
|
||||
"repository": {
|
||||
"default_branch": "main",
|
||||
"owner": {
|
||||
"login": "test-owner"
|
||||
},
|
||||
"html_url": "https://example.com/"
|
||||
}
|
||||
}
|
||||
15
test-files/github-events/pr-branch.json
Normal file
15
test-files/github-events/pr-branch.json
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"head": {
|
||||
"ref": "test-branch"
|
||||
},
|
||||
"base": {
|
||||
"ref": "main"
|
||||
},
|
||||
"repository": {
|
||||
"default_branch": "main",
|
||||
"owner": {
|
||||
"login": "test-owner"
|
||||
},
|
||||
"html_url": "https://example.com/"
|
||||
}
|
||||
}
|
||||
11
test-files/keys/cosign.key
Normal file
11
test-files/keys/cosign.key
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
-----BEGIN ENCRYPTED SIGSTORE PRIVATE KEY-----
|
||||
eyJrZGYiOnsibmFtZSI6InNjcnlwdCIsInBhcmFtcyI6eyJOIjo2NTUzNiwiciI6
|
||||
OCwicCI6MX0sInNhbHQiOiIvNjdKOVZ3WThhNnJhdk9DQUxmTzFQM05HRDRYc2s2
|
||||
L005aE5iYVhDNytBPSJ9LCJjaXBoZXIiOnsibmFtZSI6Im5hY2wvc2VjcmV0Ym94
|
||||
Iiwibm9uY2UiOiIvaHQ1MjlSNlhnbkFGbVV6L3U0anlRVE1lb200VDZNVCJ9LCJj
|
||||
aXBoZXJ0ZXh0IjoiWkpZWWsyR1FhWmdKdEh6UzBKdFVuTWhTblFXc25HcEQzYTVC
|
||||
MjN3ZVlLb2REbzJkeFVOZXhFSURwODhGUkMzalVSTTRiNTZFSEVjblZVWmFETDNj
|
||||
Z2ZrTjdNZWVvMThWWVN2Wm13STdYaFJaczExOUc2eWlmaThIcVpGYmdJM21Rd052
|
||||
MEVEcDFEekw0d2ZJWjBweVAreEEvM2xOeTlteWZSZDZSM1JoR0h5SWt6NVF4eHJ2
|
||||
WjB1VHZHVExOcmdLSHVzL3NTbis1WktsL1E9PSJ9
|
||||
-----END ENCRYPTED SIGSTORE PRIVATE KEY-----
|
||||
4
test-files/keys/cosign.pub
Normal file
4
test-files/keys/cosign.pub
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
-----BEGIN PUBLIC KEY-----
|
||||
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEq8TdgrRtcWVq6MXuB2uznS14EOQ9
|
||||
Ol41BztsDr0Qd8BGfYM6lOkZ+/NLteBFZ9gQsgVhVrjrSifcHmMAUOZYwg==
|
||||
-----END PUBLIC KEY-----
|
||||
Loading…
Add table
Add a link
Reference in a new issue