Files
toolkit/packages/attest/__tests__/__snapshots__/provenance.test.ts.snap
T

44 lines
1.3 KiB
Plaintext
Raw Normal View History

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