walkdiff 0.7.2 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/README.md +15 -4
- package/app-ui/assets/index-BSI3qomh.js +63 -0
- package/app-ui/assets/index-tYFZOod2.css +1 -0
- package/app-ui/index.html +2 -2
- package/package.json +3 -2
- package/report-ui/assets/index-BITGdYh2.js +81 -0
- package/report-ui/assets/{index-v4H3BNvl.css → index-fi2IwBXy.css} +1 -1
- package/report-ui/index.html +2 -2
- package/walkdiff.mjs +1722 -135
- package/app-ui/assets/index-DCzspYup.js +0 -63
- package/app-ui/assets/index-DZU5WQ7m.css +0 -1
- package/report-ui/assets/index-BY-qwtzV.js +0 -81
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.8.0
|
|
4
|
+
|
|
5
|
+
- **Review a stack together:** when a PR or MR builds on others, the app offers to add the whole stack. It reads GitHub's and GitLab's own stacks where they exist, and otherwise follows the branches. A grouped stack is one card on the review list, bottom first, with each PR's progress and what its host says now: new commits, a new base after the PR below merged, approved, or changes requested. **Refresh changed** re-runs only the PRs whose reports are out of date, and each report links to its neighbours in the stack.
|
|
6
|
+
- **Approve a whole stack:** **Approve all…** lists every open PR with the commit its report shows, and won't post while any has new commits or a new base. It warns about comments not posted and reviews not finished, then approves each PR bottom first and shows each result as it comes. A refused approval doesn't stop the others.
|
|
7
|
+
- **Progress on every review:** the review list shows how far you got in each report, and says when the code changed since you reviewed it.
|
|
8
|
+
- **GitLab CI checks:** poutine now scans the GitLab CI, Azure Pipelines and Tekton files a change touches. Walkdiff's own rules flag MR titles, descriptions, branch names or commit messages run as commands, remote includes without `integrity`, project includes and components not pinned to a release, and images on `latest` or with no tag. An MR that edits only an included file is checked along with the `.gitlab-ci.yml` that includes it.
|
|
9
|
+
- **Python security rules:** Ruff now also runs its security rules, ported from Bandit, on changed Python, so insecure code is caught offline when Semgrep can't run. Where another check already flagged the line, Ruff's finding is left out.
|
|
10
|
+
- **Approving a GitLab MR you'd already approved** no longer fails with advice to fix your token.
|
|
11
|
+
- **GitLab numbers** show as `!4` rather than `#4` in the report's top bar.
|
|
12
|
+
|
|
3
13
|
## 0.7.2
|
|
4
14
|
|
|
5
15
|
- **`walkdiff --version`:** shows which Walkdiff runs, and every error now ends with the version, such as `(walkdiff 0.7.2)`, so a pasted error says which release it came from. The troubleshooting guide covers "transport 'ssh' not allowed" and how to find which Walkdiff runs when several are installed.
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
A review companion for GitHub pull requests and GitLab merge requests. `walkdiff review <url>` fetches the
|
|
6
6
|
change, analyzes it, and serves a local report. (Working name; the project name is still an open decision.)
|
|
7
7
|
|
|
8
|
-
Status: early release, [v0.
|
|
8
|
+
Status: early release, [v0.8.0](CHANGELOG.md). To run it on your team's PRs, see the [pilot guide](docs/pilot.md).
|
|
9
9
|
|
|
10
10
|
**Documentation:** [getting started](docs/getting-started.md), [configuration](docs/configuration.md), [troubleshooting](docs/troubleshooting.md), [security policy](SECURITY.md).
|
|
11
11
|
|
|
@@ -98,7 +98,7 @@ Tokens and code stay on your machine, apart from the host itself, package names
|
|
|
98
98
|
|
|
99
99
|
## In CI
|
|
100
100
|
|
|
101
|
-
The GitHub Action (`navasvarela/walkdiff@v0.
|
|
101
|
+
The GitHub Action (`navasvarela/walkdiff@v0.8.0`) and the GitLab template (`ci/gitlab-ci.yml`) generate the report for each PR, keep it as a job artifact, and post one summary comment that is updated on each push. The [pilot guide](docs/pilot.md) has the setup. Locally, `walkdiff review` also works without a URL inside a CI job, and `walkdiff comment --report <dir> --report-url <url>` posts the summary.
|
|
102
102
|
|
|
103
103
|
## AI review
|
|
104
104
|
|
|
@@ -112,7 +112,8 @@ sent. A repository can forbid AI review entirely with `"ai": { "allowed": false
|
|
|
112
112
|
|
|
113
113
|
Walkdiff installs pinned versions of [Semgrep](https://semgrep.dev),
|
|
114
114
|
[gitleaks](https://github.com/gitleaks/gitleaks), [osv-scanner](https://github.com/google/osv-scanner),
|
|
115
|
-
[Ruff](https://docs.astral.sh/ruff/)
|
|
115
|
+
[Ruff](https://docs.astral.sh/ruff/), [zizmor](https://docs.zizmor.sh/) and
|
|
116
|
+
[poutine](https://github.com/boostsecurityio/poutine) on its first run, or when you run
|
|
116
117
|
`walkdiff setup`, checked against hashes in this repository, on macOS and Linux. They live in
|
|
117
118
|
`~/.cache/walkdiff/scanners`, just for Walkdiff. Semgrep needs Python 3.10 or later. If one can't be
|
|
118
119
|
installed, Walkdiff still runs, and the Risks tab lists it under "Not checked". Copies on your `PATH`
|
|
@@ -122,12 +123,22 @@ are used only when Walkdiff has none of its own. `--offline` skips installing th
|
|
|
122
123
|
| --- | --- | --- |
|
|
123
124
|
| Semgrep | Risky code patterns, using the `p/default` rules | Downloads rules; your code is not uploaded |
|
|
124
125
|
| gitleaks | Secrets | None |
|
|
126
|
+
| Ruff security rules | Insecure Python, using Bandit's rules: `shell=True`, `pickle`, `yaml.load`, `verify=False`, SQL built from strings and more. Test files are skipped | None |
|
|
125
127
|
| osv-scanner | Known vulnerabilities in `pnpm-lock.yaml`, `yarn.lock` and `bun.lock` | Sends package names and versions to OSV |
|
|
128
|
+
| zizmor | Security problems in GitHub Actions workflows | None |
|
|
129
|
+
| poutine | Security problems in GitLab CI, Azure Pipelines and Tekton: `curl \| sh`, debug tracing that prints secrets into job logs, injection through CI component inputs | None |
|
|
126
130
|
|
|
127
131
|
Only findings on lines the PR added are reported, and `--offline` skips Semgrep and osv-scanner.
|
|
132
|
+
Ruff's security rules still run offline. Where the built-in rules or Semgrep already flag a line,
|
|
133
|
+
Ruff's finding is left out.
|
|
128
134
|
Scanners read a temporary copy of the changed files, without your tokens in their environment. A PR
|
|
129
135
|
cannot silence them: `# nosemgrep` and `gitleaks:allow` comments are ignored, and scanner config files
|
|
130
|
-
in the PR (`.gitleaks.toml`, `.semgrepignore` and others) are not used. Those files are not scanned either.
|
|
136
|
+
in the PR (`.gitleaks.toml`, `.semgrepignore`, `.poutine.yml` and others) are not used. Those files are not scanned either.
|
|
137
|
+
|
|
138
|
+
For GitLab CI, Walkdiff's built-in rules add what poutine doesn't check: merge request titles, branch
|
|
139
|
+
names or commit messages run through `eval` or `sh -c`, remote includes without `integrity`, project
|
|
140
|
+
includes without `ref`, components on `~latest` or a branch, and images with no version. Both follow
|
|
141
|
+
the local includes of `.gitlab-ci.yml`, so an MR that only edits an included file is still checked.
|
|
131
142
|
|
|
132
143
|
Choose Semgrep's rules in `.walkdiff.json`; an empty list turns Semgrep off:
|
|
133
144
|
|