Skip to content

Commit

Permalink
refactor: extract repo URL
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Nov 14, 2024
1 parent d810583 commit 397c276
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ import (
"github.com/tinfoilanalytics/verifier/pkg/sigstore"
)

const repo = "tinfoilanalytics/nitro-enclave-pipeline-test"

func gitHubAttestation(digest string) ([]byte, error) {
bundleResponse, err := http.Get("https://api.github.com/repos/tinfoilanalytics/nitro-enclave-pipeline-test/attestations/sha256:" + digest)
bundleResponse, err := http.Get("https://api.github.com/repos/" + repo + "/attestations/sha256:" + digest)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 397c276

Please sign in to comment.