// [CRUCIBLE-SEED]
// category: hardcoded_secret
// severity: high
// language: java
// expected: Hardcoded GitHub personal access token in repository client

import java.net.HttpURLConnection;
import java.net.URL;

public class GitHubClient {
    private static final String GITHUB_TOKEN = "ghp_aBcDeFgHiJkLmNoPqRsTuVwXyZ012345";
    private static final String API_BASE     = "https://api.github.com";

    public String getRepository(String owner, String repo) throws Exception {
        URL url = new URL(API_BASE + "/repos/" + owner + "/" + repo);
        HttpURLConnection conn = (HttpURLConnection) url.openConnection();
        conn.setRequestProperty("Authorization", "token " + GITHUB_TOKEN);
        conn.setRequestProperty("Accept", "application/vnd.github.v3+json");
        int status = conn.getResponseCode();
        return "Status: " + status;
    }
}
