Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: rootform-dev/action
ref: cc457702223d887c9db5da52ba36099ad3e1b4e0
ref: 8b026e9c7268a960ed6f9b48ecea404180ddb151
path: fixtures/action
sparse-checkout: src
persist-credentials: false
Expand All @@ -43,7 +43,7 @@ jobs:
bun-version: '1.4.0'
- name: Generate actual Form with the published release
id: analyze
uses: rootform-dev/action/analyze@cc457702223d887c9db5da52ba36099ad3e1b4e0
uses: rootform-dev/action/analyze@8b026e9c7268a960ed6f9b48ecea404180ddb151
with:
version: 0.1.0-pr.117.1
input: fixtures/rootform/examples/playground/shared-data-platform/base/plan.json
Expand All @@ -62,7 +62,7 @@ jobs:
- name: Produce actual negative Policy result
id: check
continue-on-error: true
uses: rootform-dev/action/check@cc457702223d887c9db5da52ba36099ad3e1b4e0
uses: rootform-dev/action/check@8b026e9c7268a960ed6f9b48ecea404180ddb151
with:
input: ${{ steps.analyze.outputs.form }}
policy-pack: fixtures/negative
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ the integrated Action keeps its Form, reports, artifacts and Summary with the
fork's reduced token, while PR commenting is skipped.

The PR report currently qualifies the public CLI Markdown source at
`a1adfafa66a548b270727cfbce913325e5980f77`. A published binary produces the
`2641dfbb8fd5ed665ace7c23864afba6715cf819`. A published binary produces the
actual plan Form and negative Policy result, then a small public CLI embedding
reopens that saved evidence and exports complete Markdown/JSON. Compilation and
Policy evaluation are unavailable in the embedding. A recorded Policy answer
Expand Down
2 changes: 1 addition & 1 deletion scripts/markdown-review/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/rootform-dev/action-qualification/markdown-review

go 1.26.7

require github.com/rootform-dev/rootform/cli v0.0.0-20261002160814-a1adfafa66a5
require github.com/rootform-dev/rootform/cli v0.0.0-20261002200054-2641dfbb8fd5

require (
github.com/inconshreveable/mousetrap v1.1.0 // indirect
Expand Down
4 changes: 4 additions & 0 deletions scripts/markdown-review/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
github.com/rootform-dev/rootform/cli v0.0.0-20261002160814-a1adfafa66a5 h1:asbp+U1A78/NJFmEl3tlWBhakHyZCXZZo7AJfl93bZo=
github.com/rootform-dev/rootform/cli v0.0.0-20261002160814-a1adfafa66a5/go.mod h1:3mpH3CHzXAPAIutuAhZS7ENGerHCZvyDvZDOJ+3RRLk=
github.com/rootform-dev/rootform/cli v0.0.0-20261002194947-086dc1f16ffe h1:qN3T4bcjY+3tYX0eNPdDsLqYnfjDMD/Ki9NgqHhe0ZQ=
github.com/rootform-dev/rootform/cli v0.0.0-20261002194947-086dc1f16ffe/go.mod h1:3mpH3CHzXAPAIutuAhZS7ENGerHCZvyDvZDOJ+3RRLk=
github.com/rootform-dev/rootform/cli v0.0.0-20261002200054-2641dfbb8fd5 h1:aNifqVM3GxrnqTPOAvs8Fi/901hA5tX/cfPijb9zruY=
github.com/rootform-dev/rootform/cli v0.0.0-20261002200054-2641dfbb8fd5/go.mod h1:3mpH3CHzXAPAIutuAhZS7ENGerHCZvyDvZDOJ+3RRLk=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU=
github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4=
Expand Down
8 changes: 5 additions & 3 deletions scripts/publish-review.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { appendFileSync, copyFileSync, readFileSync, writeFileSync } from 'node:
import { resolve } from 'node:path';
import { pathToFileURL } from 'node:url';

const cliSource = 'a1adfafa66a548b270727cfbce913325e5980f77';
const actionSource = 'cc457702223d887c9db5da52ba36099ad3e1b4e0';
const cliSource = '2641dfbb8fd5ed665ace7c23864afba6715cf819';
const actionSource = '8b026e9c7268a960ed6f9b48ecea404180ddb151';
const source = resolve(process.env.ROOTFORM_ACTION_SOURCE || 'fixtures/action');
const { combineReports, renderReport, REPORT_MARKER } = await import(pathToFileURL(resolve(source, 'src/report.ts')).href);
const { readGitHubContext, upsertPullRequestComment } = await import(pathToFileURL(resolve(source, 'src/pull-request.ts')).href);
Expand Down Expand Up @@ -33,7 +33,9 @@ if (process.argv[2] === 'assemble') {
assert.ok(!/\d+ of \d+ (?:entries|evaluations|evidence lines) shown|\(\d+ of \d+ shown\)/.test(markdown));
assert.ok(markdown.includes('> [!CAUTION]\n> **Verdict: VIOLATED**'));
assert.ok(markdown.includes('<summary>Instances: 76 added</summary>'));
assert.ok(markdown.includes('#### Δ Net change'));
for (const heading of ['#### ± Planned changes', '#### ↺ Reported drift', '#### Δ Net change', '#### ▦ Planned architecture', '**? Uncertainty']) {
assert.ok(markdown.includes(heading), `missing review typography: ${heading}`);
}
for (const [variable, filename] of [['ROOTFORM_SARIF', 'results.sarif'], ['ROOTFORM_HTML', 'explorer.html']]) {
copyFileSync(required(variable), `rendered/${filename}`);
}
Expand Down
Loading