Circleci Project Slug

Published
Length
3 min read

Luis Felipe Dias

All posts

A circleci project slug is a short string that points to your code repo. You build it by joining your version control type, account name, and repo name. Engineering teams use this string to trigger builds and read pipeline runs through APIs. Many teams pair these API calls with broad tokens and shared pipeline keys. When those permissions are too wide, any build script can touch production systems. How the circleci project slug works in pipelines Every project in the build system needs a clea

CircleCI Security + Temporary Project-Based Access: the complete guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free white paper. No spam. Unsubscribe anytime.

A circleci project slug is a short string that points to your code repo. You build it by joining your version control type, account name, and repo name. Engineering teams use this string to trigger builds and read pipeline runs through APIs. Many teams pair these API calls with broad tokens and shared pipeline keys. When those permissions are too wide, any build script can touch production systems.

How the circleci project slug works in pipelines

Every project in the build system needs a clear address for API requests. The circleci project slug acts as that unique address across all your code repos. It combines three specific parts into one path separated by forward slashes. First comes the source control provider, then the account name, and last the repo. Teams pass this three-part string into API endpoints to start or check builds.

You can find this project identifier right inside your browser address bar during work. When you open a project dashboard, the URL shows the three parts in order. Teams also read this identifier from project settings pages or webhook payload data. Build scripts use this string to fetch job artifacts or update project variables. The platform checks your user token against the repo permissions before running the request.

Why native project tokens need tighter controls

Project slugs and API tokens help teams automate their software builds and deployments. The native setup checks who can start a job or read project settings. Still, project variables and tokens often hold broad database keys or cloud roles. Once a job starts, the native setup does not check individual commands in flight. Any step in the pipeline can read those stored keys and run any command.

This gap creates big risks when a build script changes or a key leaks. A single compromised test job can use shared project credentials to drop production tables. Standard project roles only decide who can view the repo or start a build. They cannot block a dangerous query or mask sensitive data during a job run. Teams need a way to check every command and hide raw data in results.

CircleCI Security + Temporary Project-Based Access: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

How to manage secrets and runs across projects

Good security starts with keeping long-lived database keys out of your project settings. Teams should separate the power to trigger a build from database write permissions. Instead of storing root keys in project variables, scope each job to specific tasks. You should also log every query and command that a deployment job sends out. When a job reads user tables, masking rules should rewrite emails and card numbers.

Review your project tokens often and remove old keys that no one uses anymore. Make sure personal API tokens do not run automated production tasks for the team. Set up approval rules before any pipeline job can run high-risk production changes. This approach keeps your build automation fast while protecting your core backend systems.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

Where do I find my project slug in the dashboard?

Open your project in the web app and look at the browser URL bar. You will see the provider type, your account name, and the repo name together.

Why do my API calls fail with a not found error?

A not found error means the slug format is wrong or your token lacks permissions. Check that all three parts match your repo path and your token has read roles.

Does the project slug change if I rename my repo?

Yes, renaming your code repo or account changes the slug string for future API calls. You must update any scripts that send requests to the old project path.

Save the open-source gateway.

hoop is MIT-licensed infrastructure for controlling how AI agents reach production data. Star hoophq/hoop so you can inspect it, deploy it, or share it when your team starts governing agent access.