Skip to main content

SKY-SCA-SRC003 · Supply chain and agent configuration

Dependency from Git or a URL that can change

Medium

A dependency installed straight from a Git repository or a download URL instead of a registry. SKY-SCA-SRC003 reports a Git dependency that is not pinned to a full 40-character commit, and a URL dependency without a hash of the file.

Languages
requirements*.txt, pyproject.toml, uv.lock, poetry.lock, Pipfile.lock, package.json, npm, pnpm, Yarn and Bun lockfiles
Quality gate
listed, not counted by the gate (full and diff scans). The built-in gate reports it without counting it, so a tag-pinned Git dependency does not start failing an existing gate. A gate policy pulled from Skylos Cloud counts it toward max_dependency_vulnerabilities.
Finding type
review
Catalog name
Mutable dependency source
Wrong result? Report itA false positive, a missed case or a confusing message: it goes privately to the founder.

Why it matters

A branch or a tag can be moved to other code, and the file behind a URL can be replaced, without any change in your repository. The next install then runs code nobody reviewed, and no advisory database covers Git or URL packages, so the vulnerability scan cannot warn you either.

What Skylos flags

requirements.txt · TextReported on line 2
six==1.17.0billing @ git+https://github.com/acme/billing@main

What Skylos leaves alone

requirements.txt · Text
six==1.17.0billing @ git+https://github.com/acme/billing@3f9c2a7e5b1d4c6a8e0f2b4d6c8a0e2f4b6d8c0a

Why Skylos leaves it alone

The dependency still comes from Git, but it is pinned to a full commit SHA. A commit cannot be moved, so every install gets the same code.

More languages

JSON

Flagged

package.json · JSONReported on line 6
{  "name": "shop",  "version": "1.0.0",  "dependencies": {    "ms": "2.1.3",    "ui-kit": "github:acme/ui-kit#v2.1.0"  }}

Not flagged

package.json · JSON
{  "name": "shop",  "version": "1.0.0",  "dependencies": {    "ms": "2.1.3",    "ui-kit": "github:acme/ui-kit#3f9c2a7e5b1d4c6a8e0f2b4d6c8a0e2f4b6d8c0a"  }}

Why Skylos leaves it alone

v2.1.0 is a tag, and a tag can be deleted and created again on other code. The full commit SHA cannot.

How Skylos decides

  1. Runs with --sca. Skylos reads manifests and lockfiles itself, records every npm and PyPI dependency that comes from Git or a URL, and hands them to the ca9 library, which decides the finding. Nothing is downloaded or installed.
  2. A Git dependency is reported unless its ref is a full 40-character commit SHA. A branch, a tag, a short SHA, or no ref at all (the default branch) is reported.
  3. A URL dependency is reported unless a hash is recorded with it, such as --hash=sha256:… or #sha256=… in a requirements file, or the hash a lockfile stores.
  4. Local folders and workspace packages are not reported. When a lockfile covers a package.json or pyproject.toml, only the lockfile entry is checked, because it records what really gets installed.
  5. Skylos checks every ca9 finding against its own record and drops one that names a pinned commit or a hashed URL.

How to fix it

Pin the dependency to the full commit SHA you reviewed, or add a hash for a URL dependency. Better still, publish the package to a registry (a private one is fine) and depend on a version.

requirements.txt · Text · the fix, against the flagged file
six==1.17.0Removed: billing @ git+https://github.com/acme/billing@mainAdded: billing @ git+https://github.com/acme/billing@3f9c2a7e5b1d4c6a8e0f2b4d6c8a0e2f4b6d8c0a

When it can be wrong

  • A tag you control and never move is still reported. Skylos cannot tell a protected tag from one anyone with push access can move.
  • The finding never fails the built-in gate, so a reviewed tag can stay listed without blocking anything.

Seeing a case that isn't listed here? Report the wrong result so the rule can be fixed. Don't paste company code: describe the shape of it.

How to silence it

  • An inline marker on the requirement line is not read: the finding stays reported. Pin the commit instead.

    Text
    billing @ git+https://github.com/acme/billing@main  # skylos: ignore[SKY-SCA-SRC003]
  • [tool.skylos] ignore = ["SKY-SCA-SRC003"] does not hide it in a full scan either.

  • A baseline does not hold it. skylos baseline . saves dependency findings only with --sca, and even then only known vulnerabilities.

From the Skylos rule handbook, Skylos 5.8.0 (commit 5b880b0). All rules.