2024-02-18 03:14:10 +00:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2024-03-22 02:25:36 +00:00
|
|
|
exports[`provenance functions buildSLSAProvenancePredicate returns a provenance hydrated from an OIDC token 1`] = `
|
2024-02-18 03:14:10 +00:00
|
|
|
{
|
|
|
|
"params": {
|
|
|
|
"buildDefinition": {
|
2024-06-05 21:36:23 +00:00
|
|
|
"buildType": "https://actions.github.io/buildtypes/workflow/v1",
|
2024-02-18 03:14:10 +00:00
|
|
|
"externalParameters": {
|
|
|
|
"workflow": {
|
|
|
|
"path": ".github/workflows/main.yml",
|
|
|
|
"ref": "main",
|
2024-08-16 17:04:14 +00:00
|
|
|
"repository": "https://foo.ghe.com/owner/repo",
|
2024-02-18 03:14:10 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
"internalParameters": {
|
|
|
|
"github": {
|
|
|
|
"event_name": "push",
|
|
|
|
"repository_id": "repo-id",
|
|
|
|
"repository_owner_id": "owner-id",
|
2024-06-05 21:36:23 +00:00
|
|
|
"runner_environment": "github-hosted",
|
2024-02-18 03:14:10 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
"resolvedDependencies": [
|
|
|
|
{
|
|
|
|
"digest": {
|
|
|
|
"gitCommit": "babca52ab0c93ae16539e5923cb0d7403b9a093b",
|
|
|
|
},
|
2024-08-16 17:04:14 +00:00
|
|
|
"uri": "git+https://foo.ghe.com/owner/repo@refs/heads/main",
|
2024-02-18 03:14:10 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"runDetails": {
|
|
|
|
"builder": {
|
2024-08-16 17:04:14 +00:00
|
|
|
"id": "https://foo.ghe.com/owner/workflows/.github/workflows/publish.yml@main",
|
2024-02-18 03:14:10 +00:00
|
|
|
},
|
|
|
|
"metadata": {
|
2024-08-16 17:04:14 +00:00
|
|
|
"invocationId": "https://foo.ghe.com/owner/repo/actions/runs/run-id/attempts/run-attempt",
|
2024-02-18 03:14:10 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"type": "https://slsa.dev/provenance/v1",
|
|
|
|
}
|
|
|
|
`;
|