Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Supported Secret Types

Harden-Runner scans the build logs and uploaded artifacts of your GitHub Actions workflow runs for exposed credentials. When it finds a value that matches one of the secret types on this page, it raises a Secrets in Build Logs or Secrets in Artifacts detection.

How secret detection works

  • Format-based matching: Harden-Runner identifies each secret type by the vendor-specific format of the credential, such as its prefix, length, and structure.

  • Complete values only: A value is detected when it matches the full format of the credential. Truncated or malformed values do not match. For example, a private key is detected only when both its BEGIN and END lines are present.

  • Masked results: Each detection records a masked preview of the secret and the location of the match. The secret value itself is never stored.

Supported secret types

Cloud and infrastructure

Provider
Secret types detected

Alibaba Cloud

Access key ID, secret key

Amazon ECR (Elastic Container Registry)

Login password

AWS CodeArtifact

Authorization token

Cloudflare

API key, global API key, Origin CA key

Confluent

Access token, secret key

Databricks

API token

Defined Networking

API token

DigitalOcean

Access token, personal access token, refresh token

Doppler

API token

Fastly

API token

Google Cloud

API key

HashiCorp Terraform

API token

HashiCorp Vault

Batch token, service token

Heroku

API key

Infracost

API token

Netlify

Access token

PlanetScale

API token, OAuth token, password

Pulumi

API token

Scalingo

API token

Yandex

Access token, API key, AWS-compatible access token

Source control and CI/CD

Provider
Secret types detected

Atlassian

API token

Bitbucket

Client ID, client secret

Codecov

Access token

Drone CI

Access token

GitHub

Personal access token (classic), fine-grained personal access token, OAuth access token, user-to-server token, server-to-server token, refresh token, Base64-encoded access token

GitLab

Personal access token, pipeline trigger token, runner registration token

Postman

API token

Prefect

API token

ReadMe

API token

Snyk

API token

Travis CI

Access token

Package registries

Provider
Secret types detected

Clojars

API token

JFrog

API key, identity token

npm

Access token

PyPI

Upload token

RubyGems

API token

Messaging and collaboration

Provider
Secret types detected

Airtable

API key

Asana

Client ID, client secret

Beamer

API token

Discord

API token, client ID, client secret

Frame.io

API token

Gitter

Access token

Intercom

API key

Linear

API key, client secret

Mattermost

Access token

MessageBird

API token, client ID

Microsoft Teams

Webhook URL

Sendbird

Access ID, access token

Slack

App token, bot token, user token, configuration access token, configuration refresh token, legacy token, legacy bot token, legacy workspace token, webhook URL

Twilio

API key

Typeform

API token

Zendesk

Secret key

Email

Provider
Secret types detected

Lob

API key, publishable API key

Mailchimp

API key

Mailgun

Private API token, public key, signing key

SendGrid

API token

Sendinblue

API token

Payments, finance, crypto, and e-commerce

Provider
Secret types detected

Bittrex

Access key, secret key

Coinbase

Access token

Duffel

API token

EasyPost

API token, test API token

Etsy

Access token

Finicity

API token, client secret

Finnhub

Access token

Flutterwave

Secret key, public key, encryption key

FreshBooks

Access token

GoCardless

API token

Kraken

Access token

KuCoin

Access token, secret key

Plaid

API token, client ID, secret key

Shippo

API token

Shopify

Access token, custom app access token, private app access token, shared secret

Squarespace

Access token

Stripe

Access token

Observability

Provider
Secret types detected

Dynatrace

API token

Grafana

API key, Grafana Cloud API token, service account token

New Relic

User API key, user API ID, insert key, browser API token

Sentry

Access token

Sumo Logic

Access ID, access token

AI and data

Provider
Secret types detected

Algolia

API key

Contentful

Delivery API token

Hugging Face

Access token, organization API token

Mapbox

API token

OpenAI

API key

RapidAPI

Access token

Identity and authentication

Provider
Secret types detected

Adobe

Client ID, client secret

Authress

Service client access key

Intra42

Client secret

JSON Web Token (JWT)

JWT, Base64-encoded JWT

LinkedIn

Client ID, client secret

Okta

Access token

X (formerly Twitter)

API key, API secret, access token, access secret, bearer token

Other SaaS

Provider
Secret types detected

Adafruit

API key

Dropbox

API token, long-lived API token, short-lived API token

Flickr

Access token

HubSpot

API key

The New York Times

Access token

Sidekiq

Secret, sensitive URL

Twitch

API token

Private keys

Provider
Secret types detected

age

Secret key

Private key blocks

Private keys enclosed in -----BEGIN ... PRIVATE KEY----- and -----END ... PRIVATE KEY----- lines

Not yet supported

Harden-Runner does not currently detect the following secret types:

  • AWS access key IDs and AWS secret access keys

  • AI (artificial intelligence) provider keys other than OpenAI and Hugging Face, for example Anthropic and Google Gemini API keys

  • Azure credentials

  • Generic high-entropy strings that have no vendor-specific format

If you need detection for one of these, or for any secret type not listed on this page, contact [email protected].

Frequently asked questions

Why doesn't Harden-Runner detect AWS access keys?

AWS credentials come in two parts, and each part causes a high false-positive rate in CI/CD (continuous integration and continuous delivery) build logs:

  • Access key ID (starts with AKIA): The access key ID identifies a key; the secret access key is the credential. Access key IDs appear constantly in legitimate build output, such as AWS CLI (command-line interface) output, IAM (Identity and Access Management) policy documents echoed for debugging, and Terraform plans.

  • Secret access key: AWS secret access keys have no distinctive prefix, and their character set overlaps with hashes and other encoded values that appear in normal build output.

Harden-Runner does detect two AWS token types: AWS CodeArtifact authorization tokens and Amazon ECR (Elastic Container Registry) login passwords.

To reduce the risk of long-lived AWS keys in your workflows, authenticate to AWS with OpenID Connect (OIDC), which issues short-lived credentials for each job.

Why wasn't a sample or test secret detected?

Harden-Runner matches the exact format of each real credential. Placeholder values often have the right prefix but the wrong length or character set, so they do not match. For example, GitHub personal access tokens have exactly 36 characters after the ghp_ prefix, so a test value with a different length is not detected.

The full value also needs to appear in the log or artifact. If a step prints only part of a secret, such as the first lines of a private key without its END line, there is no complete value to match.

Why aren't generic high-entropy strings detected?

Build logs and artifacts contain many random-looking values that are not secrets, such as commit hashes, checksums, build IDs, and encoded data. Flagging every high-entropy string would bury real findings in false positives, so Harden-Runner detects only secret types with a recognizable, vendor-specific format.

How do I request support for a new secret type?

Contact [email protected] with the provider and secret type you need.

Last updated

Was this helpful?