SKY-SCA-SRC003 · Supply chain and agent configuration
Dependency from Git or a URL that can change
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
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
six==1.17.0billing @ git+https://github.com/acme/billing@mainWhat Skylos leaves alone
six==1.17.0billing @ git+https://github.com/acme/billing@3f9c2a7e5b1d4c6a8e0f2b4d6c8a0e2f4b6d8c0aWhy 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
{ "name": "shop", "version": "1.0.0", "dependencies": { "ms": "2.1.3", "ui-kit": "github:acme/ui-kit#v2.1.0" }}Not flagged
{ "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
- 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 theca9library, which decides the finding. Nothing is downloaded or installed. - 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.
- 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. - Local folders and workspace packages are not reported. When a lockfile covers a
package.jsonorpyproject.toml, only the lockfile entry is checked, because it records what really gets installed. - Skylos checks every
ca9finding 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.
six==1.17.0Removed: billing @ git+https://github.com/acme/billing@mainAdded: billing @ git+https://github.com/acme/billing@3f9c2a7e5b1d4c6a8e0f2b4d6c8a0e2f4b6d8c0aWhen 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.