77trust / 100

Git History Secrets

by code.halowerk.com in Developer tools

x402 APIPassing, checked 6 h ago

Scan the Git history of a public repository or bundle for leaked secrets with the gitleaks default rules; reports rule, file, line and first commit, values only masked and hashed.

POST
https://code.halowerk.com/v1/git-history-secrets
Price
$0.008
per call in USDC
Uptime
96.8%
last 30 days
Response time
150 ms
232 ms slowest 5%
Last check
Passed
6 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://code.halowerk.com/v1/git-history-secrets

Each call costs $0.008 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://code.halowerk.com/v1/git-history-secrets
content-type: application/json

{
  "depth": 50,
  "repo_url": "https://github.com/octocat/Hello-World"
}

Parameters

ParameterTypeRequiredDescription
all_branchesbooleanNo Default: false.
bundle_base64stringNo
depthintegerNo Default: 50.
max_findingsintegerNo Default: 50.
refstringNo
repo_urlstringNo

Example response

The provider's example. We can't check it without paying.

Example response, 34 lines
{
  "limitations": [
    "A clean result is not proof that no secret leaked: only the fetched history is scanned, blobs over 1 MB and binary files are skipped, encoded (base64/hex) secrets are not decoded.",
    "Findings can be false positives; rotate a credential only after checking it."
  ],
  "result": {
    "findings": [],
    "findings_total": 0,
    "source": {
      "repo_url": "https://github.com/octocat/Hello-World"
    },
    "summary": {
      "blobs_binary_skipped": 0,
      "blobs_not_scanned_large_or_missing": 0,
      "blobs_path_allowlisted": 0,
      "blobs_scanned": 2,
      "bytes_scanned": 25,
      "commits_scanned": 3,
      "head": "7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
      "history_complete": true,
      "ruleset": {
        "license": "MIT",
        "name": "gitleaks default configuration",
        "rules": 222,
        "rules_not_translatable": [],
        "source": "https://github.com/gitleaks/gitleaks/blob/v8.30.1/config/gitleaks.toml",
        "version": "v8.30.1"
      },
      "truncated": false
    }
  },
  "service": "git-history-secrets",
  "status": "success"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.008.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://code.halowerk.com/v1/git-history-secrets' \
  -H 'content-type: application/json' \
  --data-raw '{"depth":50,"repo_url":"https://github.com/octocat/Hello-World"}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://code.halowerk.com/v1/git-history-secrets' \
  -H 'content-type: application/json' \
  --data-raw '{"depth":50,"repo_url":"https://github.com/octocat/Hello-World"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.008 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.008" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.008 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fcode.halowerk.com%2Fv1%2Fgit-history-secrets&method=POST
const res = await pay("https://code.halowerk.com/v1/git-history-secrets", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "depth": 50,
    "repo_url": "https://github.com/octocat/Hello-World"
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.008 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.008"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://code.halowerk.com/v1/git-history-secrets",
        json={
            "depth": 50,
            "repo_url": "https://github.com/octocat/Hello-World",
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
6 h agoPassed402138 ms$0.008
17 h agoPassed402137 ms$0.008
27 h agoPassed402148 ms$0.008
38 h agoPassed402125 ms$0.008
47 h agoPassed402121 ms$0.008
Show 10 older checks
2 days agoPassed402119 ms$0.008
3 days agoTimed out---
5 days agoTimed out---
6 days agoPassed402145 ms$0.008
7 days agoPassed402159 ms$0.008
7 days agoPassed402172 ms$0.008
7 days agoPassed402191 ms$0.008
8 days agoPassed402161 ms$0.008
8 days agoPassed402145 ms$0.008
9 days agoPassed402131 ms$0.008