Pulse Beta

User guide

Tutorial

Quickstart

Install the CLI, sign in, scan a project on your computer, and read the findings in the portal. It takes about five minutes.

Before you start #

On your computer #

1. Install the CLI #

Choose an installation method
curl -fsSL https://securechain.tuxcare.com/get/tuxcarectl | sh

The script checks the checksum and needs no root access. It installs to /usr/local/bin when it can write there, else to ~/.local/bin.

When the script prints NOTE: … is not in your PATH, the next line gives an export PATH=… command for the folder that the script installed to. Put that command in the start file of your shell (for example ~/.zshrc or ~/.bashrc), and open a new terminal. PATH separates its folders with colons (:): when the install folder has a colon in its name, the line after the NOTE tells you to install again to a folder with no colon. Set TUXCARE_INSTALL_DIR to such a folder, and run the script again.

brew install tuxcare/tap/tuxcarectl
npm install --global @tuxcare/tuxcarectl
pipx install tuxcarectl

If you installed the old package (@tuxcare/securechain of npm, securechain of PyPI), remove it first, for example with npm uninstall --global @tuxcare/securechain: the old and the new package give the same commands, and npm stops with EEXIST otherwise.

All installation methods include Docker, apt, dnf, Maven, Gradle, and a manual download.

2. Sign in #

tuxcarectl auth login

The CLI opens your browser. Sign in, check that the page shows the same code as the terminal, select your workspace, and select Approve CLI access. If an admin invited you and you did not open the workspace yet, the page lists the invitation: select Accept the invitation first, then approve. With no workspace and no invitation, ask an admin of your team's workspace to invite you, or create a workspace. If you did not accept the terms in that workspace yet, the next page shows them: select the box to accept them, and select Accept. Then select Approve CLI access again. The CLI keeps the token in a file in its login folder: ~/.config/securechain on Linux ($XDG_CONFIG_HOME/securechain when that variable is set), ~/Library/Application Support/securechain on macOS, and %LocalAppData%\securechain on Windows. When TUXCARE_CACHE is set, the login folder is that directory (for its old name, see The two names of each variable). On Linux and macOS the file has mode 0600, so only your user can read it. The CLI does not use the keychain of your computer. auth login prints the path of the file in its line stored in. When your workspace uses the TuxCare registry, the CLI then writes the registry into the configuration files of the package managers of the current directory, for example ~/.npmrc or pip.conf, and lists the files that it changed. tuxcarectl auth logout removes those lines (see The files that auth login and registry login write). You do this one time for each workspace. With a sign-in to more than one workspace, the CLI asks which workspace gets the scans of a repository, and saves the answer (see More than one workspace).

Over SSH, or on a computer with no browser, open the link that the CLI prints on another device. With no terminal and nothing on standard input, for example docker run with no -i and no -t, the CLI does not open a browser: it prints the link and the code, and waits. Open the link in a browser on any device, and approve. With docker run -i and no -t, the CLI waits for a token on standard input: after 2 seconds it prints a line about it, and Ctrl-D in a Unix terminal starts the browser sign-in. If the CLI prints nothing, see Troubleshooting.

3. Scan a project #

cd path/to/your/project
tuxcarectl sca

sca sends the package list to your workspace, waits for the match, and prints the findings. The text report ends with this scan in the portal: <link>. Open that link to view the scan. The link also appears under the first line of the vulnerabilities section. The report includes a link only when the scan has a page in the portal. The sca command reads the project without editing it. The first scan adds the repository to the workspace.

Run it on a branch, not on a detached HEAD: the portal files each scan under the repository, the branch, and the commit.

A JavaScript project must be installed first: run npm install (or pnpm install, yarn install) before sca. The CLI reads the dependency tree from the package manager, not from the lockfile alone, and a fresh clone without node_modules stops with node_modules is missing. Run npm install.

4. Open the results in the portal #

Open your workspace, for example https://acme.sc.tuxcare.cloud, select Assets › Repositories, then select your repository. The Findings tab lists each vulnerability. The Fix plan tab tells you which packages to change, and to which version.

The page of the repository github.com/acme/web-shop, with the Findings tab open, the findings grouped by package, and one package selected for bulk triage.
The page of a repository. A repository explains each part.
  1. Watch and the branches that your watch covers, the count of the watchers, the branch selector, Compliance reports, and More.
  2. The four tiles.
  3. The tabs. Each tab shows its count.
  4. The filters of the findings, and the choice By package or Flat list.
  5. The bar of the bulk triage. It shows when you select a finding.
  6. The header row of a package: the findings, the worst severity, the upgrade, and how many findings the upgrade closes.

Next steps #

Next: Install the CLI