browser_review_gate 0.5.0 → 0.5.1
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ef299f84f3f216fc4b3b459c9e628ebd0f3b5db108abf851aa6b37470617e028
|
|
4
|
+
data.tar.gz: 6daeb397ffa2c6aa3ece99d6444f62ec845ca78f69c6cce52dc7aaacde09f4c6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8868d5e892905ad0ff754b7e733a23bccfe9f6ce1a35ae65e77b479a2ac58c51cc7366ec6ed83964f65b613f9c1ded6639eb0708478cf30a92c4e5d5acc65ee2
|
|
7
|
+
data.tar.gz: e6fbe3fe09f47a32667e55e1be336b5cabc2e71239cf5b176f00ff5ceb077ece34b2f33fb1732809b8fd66ff7e07624dc2c9238159f20014ef174fa773e379ca
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.1
|
|
4
|
+
|
|
5
|
+
- With `assessment: local` the installer writes the workflow without the model secrets: that mode
|
|
6
|
+
calls no model, so the job gets none (least privilege). Re-run `browser-review-gate install` after
|
|
7
|
+
switching modes.
|
|
8
|
+
- `verify` names the Playwright MCP `.network` log among the accepted traces.
|
|
9
|
+
|
|
3
10
|
## 0.5.0
|
|
4
11
|
|
|
5
12
|
- `assessment: local`: CI calls no model and needs no secret. Any PR touching more than
|
|
@@ -69,6 +69,8 @@ module BrowserReviewGate
|
|
|
69
69
|
def label = config.label
|
|
70
70
|
def gate_labels = [ config.label, config.waiver_label ]
|
|
71
71
|
def waiver_label = config.waiver_label
|
|
72
|
+
# A local assessment calls no model, so the workflow gets no model secret (least privilege).
|
|
73
|
+
def local_assessment? = config.local?
|
|
72
74
|
def playbook_path = PLAYBOOK
|
|
73
75
|
def rules_path = Prompts::RULES
|
|
74
76
|
def exist?(path) = File.exist?(File.join(@root, path))
|
|
@@ -5,7 +5,12 @@
|
|
|
5
5
|
# pull_request_target runs this file from the base branch. PR code is never checked out or
|
|
6
6
|
# executed; the diff is read through the API as data.
|
|
7
7
|
#
|
|
8
|
+
<% if local_assessment? -%>
|
|
9
|
+
# Setup: assessment is local, so no model is called and no secret is passed. Settings: .github/browser-review-gate.yml
|
|
10
|
+
# Switching to assessment: ci needs one secret and a re-run of `browser-review-gate install`.
|
|
11
|
+
<% else -%>
|
|
8
12
|
# Setup: one secret - CLAUDE_CODE_OAUTH_TOKEN, ANTHROPIC_API_KEY, OPENAI_API_KEY or GEMINI_API_KEY. Settings: .github/browser-review-gate.yml
|
|
13
|
+
<% end -%>
|
|
9
14
|
# A PR opened before this workflow existed is assessed on its next event; dispatch with pr_number
|
|
10
15
|
# to assess it now.
|
|
11
16
|
|
|
@@ -65,9 +70,11 @@ jobs:
|
|
|
65
70
|
env:
|
|
66
71
|
GH_TOKEN: ${{ github.token }}
|
|
67
72
|
GH_REPO: ${{ github.repository }}
|
|
73
|
+
<% unless local_assessment? -%>
|
|
68
74
|
CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
|
|
69
75
|
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
70
76
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
|
71
77
|
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
|
|
78
|
+
<% end -%>
|
|
72
79
|
PR_NUMBER: ${{ github.event.pull_request.number || inputs.pr_number }}
|
|
73
80
|
run: browser-review-gate ci "$PR_NUMBER"
|
|
@@ -82,7 +82,7 @@ module BrowserReviewGate
|
|
|
82
82
|
mode = status.dig("policy", "enforced", "trace_check")
|
|
83
83
|
return [] if mode.nil? || mode == "off"
|
|
84
84
|
|
|
85
|
-
[ "Record a Playwright trace (.zip) or a HAR file (.har) for every case and list it as evidence.trace." \
|
|
85
|
+
[ "Record a Playwright trace (.zip), a Playwright MCP .network log or a HAR file (.har) for every case and list it as evidence.trace." \
|
|
86
86
|
"#{mode == "require" ? " Without one, a passing case is refused. If your browser tool can save neither, stop and tell the person." : ""}" ]
|
|
87
87
|
end
|
|
88
88
|
|