• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 46482697936
93%

Build:
DEFAULT BRANCH: main
Ran 30 Nov 2026 06:27PM UTC
Jobs 11
Files 1801
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Nov 2026 06:17PM UTC coverage: 93.111% (+0.002%) from 93.109%
46482697936

push

github

web-flow
Add `[trivy].checks` to load repository-local Rego checks (#23776)

Closes #23753.

`run_trivy` puts only the request's input digest and the discovered
`trivy.yaml` in the sandbox, so a custom Rego check reaches Trivy only
if it is a `files` dependency of every linted target, with
`--config-check` and `--check-namespaces` repeated in `[trivy].args`. In
a repo with many Terraform modules that is a dependency line in every
BUILD file, and a target that forgets it silently skips the check.

`[trivy].checks` takes files or globs relative to the build root.
`run_trivy` resolves them, merges them into the input digest next to the
config file, and passes `--config-check=<paths>` and
`--check-namespaces=<[trivy].check_namespaces>`, which defaults to
`["user"]`, the namespace Trivy's docs use for custom checks. A glob
that matches nothing is an error naming the option. With `checks` unset
the command line is unchanged. Both flags go before `[trivy].args`, so
args can still override them.

Because the Terraform, Helm and Docker linters all go through
`run_trivy`, the option applies to all three.

`--raw-config-scanners` stays in `[trivy].args`: whether it is needed
depends on the check's input selector, not on Pants.

```toml
[trivy]
checks = ["build-support/trivy-checks/*.rego"]
args = ["--raw-config-scanners=terraform"]
```

LLM disclosure: this PR, including this description, was written
primarily by Claude Code.

44 of 44 new or added lines in 3 files covered. (100.0%)

1 existing line in 1 file now uncovered.

98307 of 105580 relevant lines covered (93.11%)

3.66 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
93.83
-0.16% src/python/pants/engine/internals/graph.py
Jobs
ID Job ID Ran Files Coverage
1 test_python_linux_x86_64_0/10 - 46482697936.1 30 Nov 2026 06:39PM UTC 1245
56.83
GitHub Action Run
2 test_python_linux_x86_64_5/10 - 46482697936.2 30 Nov 2026 06:35PM UTC 1240
60.43
GitHub Action Run
3 test_python_linux_x86_64_2/10 - 46482697936.3 30 Nov 2026 06:37PM UTC 1225
59.28
GitHub Action Run
4 test_python_linux_arm64 - 46482697936.4 30 Nov 2026 06:27PM UTC 1210
53.14
GitHub Action Run
5 test_python_linux_x86_64_9/10 - 46482697936.5 30 Nov 2026 06:34PM UTC 1235
54.68
GitHub Action Run
6 test_python_linux_x86_64_4/10 - 46482697936.6 30 Nov 2026 06:40PM UTC 1254
59.04
GitHub Action Run
7 test_python_linux_x86_64_8/10 - 46482697936.7 30 Nov 2026 06:41PM UTC 1228
53.43
GitHub Action Run
8 test_python_linux_x86_64_1/10 - 46482697936.8 30 Nov 2026 06:37PM UTC 1224
48.95
GitHub Action Run
9 test_python_linux_x86_64_7/10 - 46482697936.9 30 Nov 2026 06:41PM UTC 1228
51.19
GitHub Action Run
10 test_python_linux_x86_64_6/10 - 46482697936.10 30 Nov 2026 06:35PM UTC 1222
49.85
GitHub Action Run
11 test_python_linux_x86_64_3/10 - 46482697936.11 30 Nov 2026 06:39PM UTC 1223
51.9
GitHub Action Run
Source Files on build 46482697936
  • Tree
  • List 1801
  • Changed 5
  • Source Changed 3
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #46482697936
  • 374f43c7 on github
  • Prev Build on main (#46211799751)
  • Next Build on main (#46542550740)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc