:seedling: Replace `rhysd/actionlint` with a Scorecard-owned workflow model #5287
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 575 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.380
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5287"
general
weight: 0.35
justaugustus
What kind of change does this PR introduce?
Dependency replacement and internal refactor.
What is the current behavior?
Scorecard depends on
github.com/rhysd/actionlintv1.7.9, which is unmaintained. Scorecard only uses its workflow parser and AST. v1.7.9 doesn't build againstgo.yaml.in/yaml/v4past rc.3, which blocks dependency updates such as #5264.What is the new behavior (if this is a feature change)?
internal/ghworkflow, a Scorecard-owned workflow model. The backend parser is imported only inconvert.go, so it can be replaced without touching checks or probes. Tests pin the parser behaviour Scorecard relies on, independent of the backend.checks/fileparserhelpers onto the new model. The backend is still rhysd here, so results are unchanged.actionlint.kjanat.devv1.17.0, the only maintained fork, and movesyaml/v4to rc.6.Which issue(s) this PR fixes
Fixes #5278
Special notes for your reviewer
Each commit builds and passes tests on its own, so reviewing commit by commit is easiest.
Behaviour differences found when switching to kjanat (commit 3):
runs-on: ${{ matrix.os }}. kjanat reports this in a newRunner.Expressionfield instead ofLabelsExpr. Without handling it, Scorecard silently loses OS and shell detection for matrix jobs. Four existing tests caught this, and so did the new compatibility test.convert.gomaps the field back.checks/fileparserhelpers (GetJobName,AnyJobsMatch,IsPackagingWorkflowand others) now takeinternal/ghworkflowtypes instead ofrhysd/actionlinttypes. Any parser change alters these signatures. A GitHub code search found no callers outside Scorecard and its forks.kjanat governance. It has a single maintainer whose PRs are reviewed only by bots, its module path is on a personal domain, and it changes quickly. Release tags are signed and releases carry build provenance. The adapter keeps a future backend swap, for example to an in-tree parser, local to one file. Every version bump should still go through the
internal/ghworkflowcompatibility tests.Dependency footprint. After
go mod tidy, the only new module isclipperhouse/uax29/v2. The rest of thego.moddiff is minor version bumps.Verification
SKIP_GINKGO=1 go test -race) pass on every package.check-linterpasses in CI with the pinned golangci-lint.scorecardfrom the merge base and from this branch and ran Dangerous-Workflow, Pinned-Dependencies, Token-Permissions, Binary-Artifacts, SAST and Packaging on eight repositories: ossf/scorecard, sigstore/cosign, step-security/harden-runner, tektoncd/pipeline, home-assistant/core, nodejs/node, python/cpython and kubernetes/kubernetes. Scores, reasons and details matchedmainon all eight.- home-assistant/core's Packaging finding can point at a different line from run to run, on
maintoo:AnyJobsMatchreturns the first matching job while iterating over a map, and that workflow has two publishing jobs.Does this PR introduce a user-facing change?
``
release-noteuses:Workflow checks now resolve YAML aliases in GitHub Actions workflows. Values reached through an alias, such as an aliased
orrun:, were previously skipped and are now checked, for example by Pinned-Dependencies and Dangerous-Workflow.
``