()
| 9 | ) |
| 10 | |
| 11 | func createSampleResult() *AttestationProcessingResult { |
| 12 | return &AttestationProcessingResult{ |
| 13 | VerificationResult: &verify.VerificationResult{ |
| 14 | Signature: &verify.SignatureVerificationResult{ |
| 15 | Certificate: &certificate.Summary{ |
| 16 | SourceRepositoryOwnerURI: "https://github.com/owner", |
| 17 | SourceRepositoryURI: "https://github.com/owner/repo", |
| 18 | Issuer: "https://token.actions.githubusercontent.com", |
| 19 | SourceRepositoryRef: "refs/heads/main", |
| 20 | }, |
| 21 | }, |
| 22 | }, |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | func TestVerifyCertExtensions(t *testing.T) { |
| 27 | results := []*AttestationProcessingResult{createSampleResult()} |
no outgoing calls
no test coverage detected