Pulse Beta

User guide

How-to guide

Tokens

Pick the token of a pipeline, make it, and let GitHub Actions and GitLab CI sign in with no stored token.

Pick a token for the pipeline #

Use the smallest token that does the job. If it leaks, less is exposed.

When setting a portal token and URL in CI, use the same family of variable names. Set TUXCARE_PORTAL_TOKEN and TUXCARE_PORTAL_URL together, or set SECURECHAIN_PORTAL_TOKEN and SECURECHAIN_PORTAL_URL together. A token from one family with a URL only from the other, for example a group variable TUXCARE_PORTAL_URL, stops the CLI at exit 5 before it sends anything (CLI 0.1.94 or later). With the GitHub Action, set a custom URL in the portal-url input alongside portal-token.

Your pipelineWho makes the tokenWhat to select on Access tokens
The pipeline of one repositoryAn admin, or a member of that repositoryThe CI token (one repository) preset and the repository. The form starts with this preset. The token can send and read that repository only, so the CLI shows no link to the scan of a git dependency in another repository (see links to another repository). It expires in 90 days. A member must set an expiry of 90 days or less. The token stops when the person who made it is disabled or loses the member role on the repository, and Access tokens marks it; it works again if that person gets the role back.
A CI server or a shared CI template that builds many repositories of one teamAn adminScope a department, the department, and the CI upload (all my repositories) rights. One token serves every repository of the department, so the team does not make and replace one token for each repository. A scan of a new repository puts the repository in that department. The token can read every repository of the department, so the CLI shows the link to the scan of a git dependency in another repository of the department (see links to another repository). The token cannot send scans to a repository of another department. This token does not depend on a person: it keeps working when the admin who made it leaves.
A pipeline that builds more than one repository, when you are not an adminA memberThe CI upload (all my repositories) rights. The token acts as you: it can read every repository that you can read, and the form warns about it. It expires in 90 days unless you clear the date. It stops when your user is disabled. A job that only sends scans (tuxcarectl sca, tuxcarectl check) can use Upload only: it reads only the findings of its own scans.

Access tokens explains each right and scope.

Make a token for the pipeline #

Does one CI template or one CI server build many repositories of your team? Then ask an admin for a department token, and do not make one token for each repository. See Pick a token for the pipeline. The steps below make the token of one repository.

  1. In your workspace, open the account menu at the right of the header, and select My tokens.
  2. Type a Name, for example ci web-shop.
  3. Select CI token (one repository) and the repository. An admin and a member can mint it. It expires in 90 days at most.
  4. Select Mint token and copy the token. The portal shows it one time only.

Give each pipeline its own token. Do not use the token of your computer. Pick a token for the pipeline compares the choices.

Sign in with no stored token #

GitHub Actions and GitLab CI give each job a signed OIDC token. With a trust rule, the job trades that token for a portal token of one hour, and the pipeline stores no portal token. A leaked token stops by itself. The audit log names the repository, the ref, and the run of each sign-in.

  1. An admin opens Settings › Access › CI sign-in and adds a rule: the CI system, the repository or project path, and the rights and the scope of the tokens. Set the ref too: a branch name, for example main, or a full ref, for example refs/tags/v1.2.0. A branch name never takes a tag with the same name. With no ref, the rule takes each branch, tag, and pull request of the repository that can get an OIDC token.
  2. Change the job as below. PORTAL_URL is the address of your workspace, with no slash at the end, for example https://acme.example.com. The audience of the OIDC token must be this address.

The job of each CI system: GitHub Actions and GitLab CI.

Access tokens #

A token lets a program use your workspace: the CLI, a CI job, a script, or an AI assistant. Open My tokens in the account menu (an admin also finds every token under Settings › Access), type a Name that tells where the token is used, select the rights, set an expiry, and select Mint token.

The portal shows a token one time only

Copy it at once and keep it in a secret store. The portal keeps only a hash of the token. If you lose a token, revoke it and make a new one.

The Access tokens page, with the form that makes a token and a table of five tokens.
The Access tokens page of an admin.
  1. The name of the token.
  2. The scope. Only an admin sees this list.
  3. The rights: a preset, or your own selection of channels and permissions.
  4. Mint token makes the token and shows it one time.

Rights #

The rights of a token are two lists:

Select a preset, or select Custom and tick each channel and permission:

PresetChannelsPermissionsUse it for
CI token (one repository)CLIsubmit, readThe CI job of one repository. An admin and a member see this preset, and the form starts with it. It sets the scope to one repository and the expiry to 90 days from today. A member needs the member role on that repository, and the expiry is 90 days or less.
CI upload (all my repositories)CLIsubmit, readA CI job that builds more than one repository, or your own computer: send scans and read the findings. The token can read every repository that its scope can read, and the form warns about it. It sets the expiry to 90 days from today; you can clear it.
Upload onlyCLIsubmitA job or a TuxCare Radar agent that sends scans. It reads only the findings of the scans that it sent. It can run tuxcarectl sca and tuxcarectl check.
Read onlyAPIreadA script or a dashboard that reads findings.
Read and writeAPIread, writeA script that also triages findings or changes settings.
AI assistantMCPreadAn AI assistant that reads findings.
AI assistant with triageMCPread, writeAn AI assistant that can also triage findings.

Scope #

An admin selects a Scope. The scope limits what a token can see on every channel. Use the smallest scope that does the job:

ScopeWhat the token can doUse it for
a repositorySend scans to one repository and read that repository only.The CI job of one repository. If the token leaks, only that repository is exposed.
a departmentSend scans and read the repositories of one department. A scan of a new repository puts the repository in that department.A CI server that builds many repositories of one team.
me, or a userAct as that user, with the role and the departments of the user. The token stops when the user is disabled.Your own computer, scripts, and AI assistant.
whole workspaceAct as an admin of the whole workspace. The token belongs to no person, so it keeps working when the person who made it leaves.Automation that manages the workspace. Keep these few.

A member or a viewer makes tokens for their own user, and does not see the Scope list. A member also makes the CI token of one repository with the CI token (one repository) preset. That token stops when the person who made it is disabled or loses the member role on the repository, and Access tokens marks it; it works again when that person gets the role back. It also stops when it expires or someone revokes it. The member sees it on Access tokens and can revoke it. An admin can make a token of one repository with wider rights (the poll permission, the write permission, or the api or mcp channel): that token stops when the admin loses the admin role, also when the person keeps the member role on the repository. A department token that an admin makes does not depend on a person. A repository or department token cannot read other repositories, and it cannot make, list, or revoke tokens.

Expiry #

Set a date in Expires, or leave the field empty for a token that does not expire. The token stops at the end of that day in the time zone of your browser.

Allowed addresses #

A token can work from some networks only. Type them in Allowed from when you make the token, separated by commas: a network such as 10.0.0.0/8 or 2a01:4f8::/64, or one address such as 203.0.113.7. Leave the field empty to allow every address. To change the list of a token, select Addresses in its row.

Next: Departments