The two long run: blocks of plugin-catalog-ci.yml move into scripts/ci/,
so the admission gate can be read, tested and run outside a workflow:
- "Find changed catalog entries" (41 lines) ->
scripts/ci/catalog_changed_entries.py: the merge-commit check, the
AMRT entry list without removed.yaml, the data-only rule for entry PRs,
and the files<<__EOF__ block in $GITHUB_OUTPUT.
- "Clone each entry at its pinned sha and validate" (235 lines) ->
scripts/ci/catalog_validate_pinned_entries.py, with the entry-field
parser that the step fed to `python3 -I -` on a heredoc now in
scripts/ci/catalog_entry_fields.py (still run with -I, still evaled
as shlex-quoted assignments, still reset to "parser failed" when it
dies).
Both steps run `python3 -I "$GITHUB_WORKSPACE/scripts/ci/<script>"`;
env, error lines, PASS/FAIL lines and exit codes are unchanged. The
attested_binaries block is not carried over: its parser ran with
`<<'PYEOF' </dev/null`, so the later redirect gave python an empty
program, ATTESTED was always empty and no `gh attestation verify` ever
ran. Dropping it keeps today's behaviour (a declared binary still fails
the payload scan).
test_plugin_catalog_ci_confinement.py still runs the workflow step text
(now the script call); every case passes against both the old and the
new workflow. test_catalog_pinned_confinement.py adds a POSIX test of
the confinement rule and the entry-field rejections, since the step
test is Linux-only.