From 397c2768a11a054edf2de05fdcf1c38e91678c5c Mon Sep 17 00:00:00 2001 From: Nate Sales Date: Thu, 14 Nov 2024 11:44:19 -0500 Subject: [PATCH] refactor: extract repo URL --- cmd/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/main.go b/cmd/main.go index 0c43fe2..8ddf593 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -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 }