CI: one pipeline to the CI standard: PHP 8.4 lint, audits, scans, API and MCP tests (#136) #139
Open
jared
wants to merge 3 commits from
ci-standard into development
pull from: ci-standard
merge into: LotusGuild:development
LotusGuild:main
LotusGuild:deps-symfony-http-client
LotusGuild:ci-playwright-ui
LotusGuild:development
LotusGuild:pr-133-screenshots
LotusGuild:auto-reopen-bypass-workflow
LotusGuild:pr-124-screenshots
LotusGuild:dedup-key-contract
LotusGuild:mcp-comment-edit-delete
LotusGuild:pr-120-screenshots
LotusGuild:pr-119-screenshots
LotusGuild:fix-114-description-markdown
LotusGuild:fix/comment-markdown-persist-18
No Reviewers
Labels
Clear labels
api
bug
concurrency
config
data-integrity
dead-code
documentation
duplicate
enhancement
help wanted
invalid
needs-decision
notifications
performance
priority/docs
priority/high
priority/low
priority/medium
question
rate-limiting
reliability
security
ux
wontfix
workflow
Bearer/internal API surface
Something is not working
Race condition / concurrency bug
Configuration / deployment default
Data correctness / schema / integrity issue
Unused / dead code cleanup
README / docs accuracy
This issue or pull request already exists
New feature
Need some help
Something is wrong
Needs a maintainer decision, not clearly a bug
Matrix / in-app notification bug
Performance or resource-usage concern
Documentation-only gap
High-severity / high-impact issue
Low-severity / cosmetic issue
Medium-severity issue
More information is needed
Rate limiting behavior
Reliability / error-handling gap
Security or access-control impact
User-facing UX/functional bug
This won't be fixed
Ticket status workflow engine
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: LotusGuild/tinker_tickets#139
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part of #136: brings Tinker's CI up to the shared CI standard, which is modelled on Pulse and Thor.
Stacked on #120 (UI tests) and #137 (the symfony/http-client bump). Only the last commit,
CI: one pipeline…, is new here. Once those two merge I'll rebase ontodevelopment, and this PR will show just that commit.What changes
ci.ymlreplaceslint.ymlandsecurity.yml. Deploys now wait for every check; before, they waited for lint only.php -lon every file under PHP 8.4;check_requirements.php; phpcs 4.0.4 (pinned, SHA-256 checked); eslint 8.57.1 from a lockfile, with--max-warnings=66(today's count, so warnings can only go down)npm install eslint@8; PHP from whatever the image hadcomposer validate --strict;composer audit --locked --abandoned=fail; npm audit (high) andnpm audit signaturesfor the test toolingp/javascript,p/secretsandp/security-auditadded top/php+p/owasp-top-ten?dedup_key=lookup, the source filter, the link API)main/developmentor in the weekly run, and on every deployAlso:
${{ }}values reach scripts only throughenv, as zizmor wants.What the new checks found
composer audit:symfony/http-client7.4.19, which prod runs. Fixed by #137.mcp/sdk0.8.1, GHSA-f4rf-6ghj-mhr6 (low): only the SDK's/tokenand/registerOAuth proxy endpoints are affected, and Tinker uses neither. It's ignored incomposer.jsonwith that reason, and the 0.9 upgrade (breaking auth API) is #138.Bearer YOUR_API_KEYplaceholder on the API keys help page. That's allowlisted in.gitleaks.tomlfor that file only. No real secret was ever committed.Not in this PR
{ref, sha, ts};/healthendpoint reporting the sha, which CI waits for.git resetto the branch head and ignore the payload. That needs server changes with your OK, so it's a follow-up under #136.⚠ Before merging: branch protection
mainhas required status checks named after the old jobs, e.g.Lint / PHP (phpcs PSR-12) (pull_request). Those never report again after this, so a release PR tomainwould wait forever. Update the required checks to the new names before the nextdevelopment→mainrelease:CI / Lint (PHP 8.4, phpcs, eslint) (pull_request)CI / Security (composer and npm audit) (pull_request)CI / Scan (secrets, workflows, shell, patterns) (pull_request)CI / API and MCP (PHP 8.4, MariaDB) (pull_request)CI / UI (playwright) (pull_request)Verified locally
stack.sh, thenfixtures.php,mcp_test.phpandtest_api.pyagainst a fresh database: 30/30 and 132/132, with no PHP warnings in the server log.ci.yml: clean;composer validate --strictandcomposer audit --abandoned=fail: pass;php -landcheck_requirements.php: pass locally (PHP 8.2). CI runs them on 8.4.🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.