A Deno Deploy access token lets whoever holds it deploy code to the Deno Deploy projects of the account that issued it. A deployment is code that runs on your domain, so a stolen token is a way to change what your users receive. Revoke the token first, then check the deployment history, because a single unexpected release can be enough to do harm.
Check your GitHub account for leaked secrets — free
- Provider
- Deno
- Severity
- High
- Impact
- Cloud infrastructure access
- Checked live by LeakWatch
- No
What a Deno Deploy access token looks like
Personal access tokens for Deno Deploy start with ddp_, followed by a fixed-length run of letters and digits:
ddp_…XXXX Deno Deploy access token (masked)
Deno has also used organization tokens with a different prefix, which this rule does not match. The Deno tooling reads the token from an environment variable, which is the usual place for it to end up in a CI file. A value with the ddp_ prefix in a deploy workflow is worth treating as a live credential until you have checked it.
How Deno Deploy access tokens get leaked
- CI workflow files. A GitHub Actions or GitLab CI file with the token written in the step that runs the deployment, instead of in the platform’s secret store.
- Environment files. A
.envfile used for local deploys, committed by accident. - Shell history. A command typed with the token on the command line, saved in a history file or copied into a script.
- Shared scripts. A deploy script posted in a tutorial, a gist or a team chat with the real value left in.
- Build logs. A step that prints its environment or its full command, including the token.
What to do in the first hour
- Revoke the token. Open the account settings and find the access tokens section. Delete or regenerate the token that leaked, and confirm the change. Do this before you clean the repository, so the value is no longer usable.
- Create a replacement and store it only in your CI secret store or in a local credentials manager. Name it after the job that uses it, so you know which one to rotate later.
- Check the deployments. Open each project the token could reach and review its deployment history for the period since the exposure. Look for releases you did not make, and compare the timestamps with your own commits.
- Check the project settings. Review environment variables, domains and any integrations attached to the projects, since a changed domain or variable is a common follow-up to an attacker’s access.
- Redeploy from a clean source. If an unexpected release reached production, roll back to a version you trust and redeploy from a reviewed commit.
- Clean the repository and the logs. Remove the value from files and history, and check the logs of recent pipelines. See I accidentally pushed an API key to GitHub.
Not sure what else leaked from the same workflow? Run a free scan.
Revoke it at Deno
Go to the account settings on the Deno dashboard, open the access tokens section and remove the token that leaked. Deno’s account and organization token pages have changed over time, and the public descriptions of this flow are partly third-party, so this guide has not confirmed the current labels. If you use an organization token as well, check it separately. Deno’s documentation is the place to confirm the current steps before you rely on them.
How LeakWatch detects it
The rule is called “Deno Deploy Access Token”. It looks for the prefix ddp_ followed by 36 letters or digits, with word boundaries around the value. It does not need any surrounding text. The severity is high. This type is not checked live: LeakWatch does not call Deno with the value, so a hit tells you the token was present in the scanned content.
LeakWatch detects this format but does not check it live: it can tell you the key is exposed, not whether it still works. Assume it does until you have revoked it.
FAQ
Can the token read my source code?
Not necessarily. A deploy token is mainly a way to publish. It may also expose project information, depending on the scopes Deno gives it, so check what the token could reach in your account.
Will revoking the token stop my site?
No. Live deployments keep running after revocation. Only new deployments that use the old token will fail, which is the point.
Should I use one token for every project?
Prefer one token per pipeline or per team, so a single revocation affects only the jobs that use it.