Skip to content

Commit 48df59b

Browse files
committed
fix(github): use GITHUB_TOKEN for attestation verification
Pass the GitHub token to sigstore_verification::verify_github_attestation to avoid API rate limiting when verifying GitHub attestations.
1 parent 8159d95 commit 48df59b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/backend/github.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use crate::backend::static_helpers::{
99
};
1010
use crate::cli::args::{BackendArg, ToolVersionType};
1111
use crate::config::{Config, Settings};
12+
use crate::env;
1213
use crate::file;
1314
use crate::http::HTTP;
1415
use crate::install_context::InstallContext;
@@ -939,7 +940,10 @@ impl UnifiedGitBackend {
939940
let (owner, repo_name) = (parts[0], parts[1]);
940941

941942
match sigstore_verification::verify_github_attestation(
942-
file_path, owner, repo_name, None, // No token - use public API
943+
file_path,
944+
owner,
945+
repo_name,
946+
env::GITHUB_TOKEN.as_deref(),
943947
None, // We don't know the expected workflow
944948
)
945949
.await

0 commit comments

Comments
 (0)