ghreview 3.0.24 → 3.0.26

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.
@@ -1,14 +1,33 @@
1
- # Computes dependency evidence with a read-only token; depsound-post handles
2
- # the write side without exposing it to PR code.
1
+ # Copy into .github/workflows/ of the repo you want reviewed. One workflow,
2
+ # two jobs: review computes with a read-only token, post holds the write
3
+ # scopes. The README explains the security model.
4
+ #
5
+ # pull_request_target runs the base branch's workflow definition and action
6
+ # pin (a PR cannot modify what executes here), and its token can post the
7
+ # comment, including on Dependabot and fork PRs whose own token is read-only.
8
+ # It is safe here because no PR code is ever checked out or executed: the
9
+ # review job reads the PR's manifest bytes as git objects, and depsound's
10
+ # parsers treat all of it as hostile data.
3
11
  name: depsound
4
12
  on:
5
- pull_request:
13
+ pull_request_target:
6
14
 
7
- permissions:
8
- contents: read # checkout + diff the PR's manifests; no write, never posts
15
+ permissions: {} # scopes are granted per job below
9
16
 
10
17
  jobs:
11
18
  review:
12
19
  runs-on: ubuntu-latest
20
+ permissions:
21
+ contents: read # diff the PR's manifests; this job never sees a write token
13
22
  steps:
14
- - uses: rvagg/depsound-action@cae3f58d212f5761ae6ea256acb15441ec5dcd6a # v0.2.2
23
+ - uses: rvagg/depsound-action@ba0a7a165d7b4f72671e0453612fbcfbd328bd2e # v0.3.2
24
+ post:
25
+ needs: review
26
+ if: ${{ always() && needs.review.result != 'cancelled' }} # a failed review still posts its failure marker
27
+ runs-on: ubuntu-latest
28
+ permissions:
29
+ pull-requests: write # upsert the sticky comment
30
+ checks: write # set the neutral check
31
+ actions: read # download the report artifact
32
+ steps:
33
+ - uses: rvagg/depsound-action/post@ba0a7a165d7b4f72671e0453612fbcfbd328bd2e # v0.3.2
@@ -10,7 +10,7 @@ jobs:
10
10
  runs-on: ${{ matrix.os }}
11
11
  steps:
12
12
  - name: Checkout Repository
13
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
13
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
14
14
  - name: Use Node.js ${{ matrix.node }}
15
15
  uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
16
16
  with:
@@ -34,7 +34,7 @@ jobs:
34
34
  id-token: write
35
35
  steps:
36
36
  - name: Checkout
37
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
37
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
38
38
  with:
39
39
  fetch-depth: 0
40
40
  - name: Setup Node.js
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [3.0.26](https://github.com/rvagg/ghreview/compare/v3.0.25...v3.0.26) (2026-07-27)
2
+
3
+ ## [3.0.25](https://github.com/rvagg/ghreview/compare/v3.0.24...v3.0.25) (2026-07-21)
4
+
1
5
  ## [3.0.24](https://github.com/rvagg/ghreview/compare/v3.0.23...v3.0.24) (2026-07-20)
2
6
 
3
7
  ## [3.0.23](https://github.com/rvagg/ghreview/compare/v3.0.22...v3.0.23) (2026-07-18)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ghreview",
3
- "version": "3.0.24",
3
+ "version": "3.0.26",
4
4
  "description": "GitHub PR-based code review workflow for AI-assisted development",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -1,19 +0,0 @@
1
- # Posts the report artifact without checking out or running PR code with its
2
- # write token.
3
- name: depsound-post
4
- on:
5
- workflow_run:
6
- workflows: [depsound]
7
- types: [completed]
8
-
9
- permissions:
10
- pull-requests: write # upsert the sticky comment
11
- checks: write # set the neutral check
12
- actions: read # download the report artifact from the compute run
13
-
14
- jobs:
15
- post:
16
- runs-on: ubuntu-latest
17
- if: ${{ github.event.workflow_run.event == 'pull_request' }}
18
- steps:
19
- - uses: rvagg/depsound-action/post@cae3f58d212f5761ae6ea256acb15441ec5dcd6a # v0.2.2