ci: remove slash from tenant-token lint workflow name #1574

Open
hongming wants to merge 2 commits from fix/workflow-name-no-token-slash into main
Owner

Phase 1 evidence

Brief claims

  • [H1] 13:11 PDT molecule-core main red has at least one repo-owned CI/security hardening regression worth fixing now.

Verification queries + evidence

  • H1 confirmed: fresh Gitea status for molecule-core/main@302235da2339 showed publish-workspace-server-image / Production auto-deploy and status-reaper / reap failing.
  • Direct logs:
    • /molecule-ai/molecule-core/actions/runs/73720/jobs/1/logs reports lint-workflow-yaml: 1 fatal violation and points at .gitea/workflows/lint-no-tenant-gitea-token.yml.
    • /molecule-ai/molecule-core/actions/runs/73764/jobs/0/logs reports workflow name contains '/' which breaks context parsing: Lint no tenant GITEA/GITHUB token write.

Root cause

The workflow name contains a slash in GITEA/GITHUB, violating the repo-owned context parser convention <workflow> / <job> (<event>).

Phase 2 design

Small repo-owned config fix: rename the workflow to keep the same meaning without /: Lint no tenant Gitea-GitHub token write.

Rollback: revert this single commit.

Verification

  • python3 .gitea/scripts/lint-workflow-yaml.py passed: 59 workflows checked, no fatal Gitea-hostile shapes.
  • git diff --check passed.

No merge, force-push, push to main, secret rotation, protection mutation, destructive cleanup, or runner restart performed.

## Phase 1 evidence ### Brief claims - [H1] 13:11 PDT molecule-core main red has at least one repo-owned CI/security hardening regression worth fixing now. ### Verification queries + evidence - H1 confirmed: fresh Gitea status for `molecule-core/main@302235da2339` showed `publish-workspace-server-image / Production auto-deploy` and `status-reaper / reap` failing. - Direct logs: - `/molecule-ai/molecule-core/actions/runs/73720/jobs/1/logs` reports `lint-workflow-yaml: 1 fatal violation` and points at `.gitea/workflows/lint-no-tenant-gitea-token.yml`. - `/molecule-ai/molecule-core/actions/runs/73764/jobs/0/logs` reports `workflow name contains '/' which breaks context parsing: Lint no tenant GITEA/GITHUB token write`. ### Root cause The workflow name contains a slash in `GITEA/GITHUB`, violating the repo-owned context parser convention `<workflow> / <job> (<event>)`. ## Phase 2 design Small repo-owned config fix: rename the workflow to keep the same meaning without `/`: `Lint no tenant Gitea-GitHub token write`. Rollback: revert this single commit. ## Verification - `python3 .gitea/scripts/lint-workflow-yaml.py` passed: 59 workflows checked, no fatal Gitea-hostile shapes. - `git diff --check` passed. No merge, force-push, push to main, secret rotation, protection mutation, destructive cleanup, or runner restart performed.
hongming added 1 commit 2026-05-19 20:15:16 +00:00
ci: remove slash from tenant-token lint workflow name
Lint shellcheck (arm64 pilot) / shellcheck-arm64 (pilot) (pull_request) Waiting to run
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 9s
CI / Detect changes (pull_request) Successful in 12s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 23s
E2E API Smoke Test / detect-changes (pull_request) Successful in 15s
E2E Chat / detect-changes (pull_request) Successful in 13s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 9s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 11s
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 11s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 6s
Lint no tenant Gitea-GitHub token write / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 4s
lint-required-context-exists-in-bp / lint-required-context-exists-in-bp (pull_request) Failing after 27s
lint-continue-on-error-tracking / lint-continue-on-error-tracking (pull_request) Successful in 1m22s
lint-required-workflows-docker-host-pinned / Lint docker-host pin on docker-touching workflows (pull_request) Successful in 3s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 21s
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 8s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 3s
gate-check-v3 / gate-check (pull_request) Successful in 4s
Lint pre-flip continue-on-error / Verify continue-on-error flips have run-log proof (pull_request) Successful in 1m21s
qa-review / approved (pull_request) Failing after 3s
sop-checklist / na-declarations (pull_request) N/A: (none)
sop-checklist / all-items-acked (pull_request) Successful in 4s
security-review / approved (pull_request) Failing after 8s
sop-tier-check / tier-check (pull_request) Successful in 4s
Lint workflow YAML (Gitea-1.22.6-hostile shapes) / Lint workflow YAML for Gitea-1.22.6-hostile shapes (pull_request) Successful in 1m25s
CI / Platform (Go) (pull_request) Successful in 5m16s
CI / Canvas (Next.js) (pull_request) Successful in 7m0s
CI / Python Lint & Test (pull_request) Successful in 7m3s
CI / all-required (pull_request) Successful in 7m18s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 5s
E2E Chat / E2E Chat (pull_request) Successful in 8s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 7s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 5s
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Successful in 3s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
c8c692e600
hongming added 1 commit 2026-05-19 21:14:35 +00:00
ci: annotate renamed tenant-token lint context
Lint shellcheck (arm64 pilot) / shellcheck-arm64 (pilot) (pull_request) Waiting to run
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 4s
CI / Detect changes (pull_request) Successful in 8s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 20s
E2E Chat / detect-changes (pull_request) Successful in 10s
E2E API Smoke Test / detect-changes (pull_request) Successful in 7s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 8s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 3s
Harness Replays / detect-changes (pull_request) Successful in 5s
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 9s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 4s
Lint no tenant Gitea-GitHub token write / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 4s
CI / Platform (Go) (pull_request) Successful in 2m41s
lint-continue-on-error-tracking / lint-continue-on-error-tracking (pull_request) Successful in 1m17s
Lint pre-flip continue-on-error / Verify continue-on-error flips have run-log proof (pull_request) Successful in 1m9s
lint-required-context-exists-in-bp / lint-required-context-exists-in-bp (pull_request) Successful in 33s
lint-required-workflows-docker-host-pinned / Lint docker-host pin on docker-touching workflows (pull_request) Successful in 3s
publish-runtime-autobump / bump-and-tag (pull_request) Has been skipped
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 6s
gate-check-v3 / gate-check (pull_request) Successful in 6s
qa-review / approved (pull_request) Failing after 4s
Lint workflow YAML (Gitea-1.22.6-hostile shapes) / Lint workflow YAML for Gitea-1.22.6-hostile shapes (pull_request) Successful in 30s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 3s
publish-runtime-autobump / pr-validate (pull_request) Successful in 35s
security-review / approved (pull_request) Failing after 3s
sop-checklist / na-declarations (pull_request) N/A: (none)
sop-checklist / all-items-acked (pull_request) Successful in 4s
sop-tier-check / tier-check (pull_request) Successful in 5s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m10s
Ops Scripts Tests / Ops scripts (unittest) (pull_request) Successful in 29s
CI / Canvas (Next.js) (pull_request) Successful in 5m27s
CI / Python Lint & Test (pull_request) Successful in 6m34s
CI / all-required (pull_request) Successful in 6m26s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 2s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 53s
Harness Replays / Harness Replays (pull_request) Successful in 2s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Failing after 2m7s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Successful in 2m41s
E2E Chat / E2E Chat (pull_request) Failing after 7m6s
4d626c76f3
Author
Owner

14:11 PDT follow-up on PR #1574:

The first PR run correctly failed Tier 2g because the workflow rename creates new status context names. I added an in-file directive above scan::

# bp-exempt: merge protection is enforced through CI / all-required; this workflow is a component guardrail context rather than a direct BP context.

Fresh local verification after the follow-up commit:

  • python3 .gitea/scripts/lint-workflow-yaml.py: passed, 59 workflow files checked, no fatal shapes.
  • BASE_SHA=$(git merge-base origin/main HEAD) HEAD_SHA=$(git rev-parse HEAD) ... python3 .gitea/scripts/lint_required_context_exists_in_bp.py: passed, both new pull_request and push emissions directive-validated.
  • git diff --check: passed.

Pushed normal follow-up commit 4d626c76; no force-push, merge, push to main, secret rotation, protection mutation, destructive cleanup, or runner restart performed.

14:11 PDT follow-up on PR #1574: The first PR run correctly failed Tier 2g because the workflow rename creates new status context names. I added an in-file directive above `scan:`: `# bp-exempt: merge protection is enforced through CI / all-required; this workflow is a component guardrail context rather than a direct BP context.` Fresh local verification after the follow-up commit: - `python3 .gitea/scripts/lint-workflow-yaml.py`: passed, 59 workflow files checked, no fatal shapes. - `BASE_SHA=$(git merge-base origin/main HEAD) HEAD_SHA=$(git rev-parse HEAD) ... python3 .gitea/scripts/lint_required_context_exists_in_bp.py`: passed, both new pull_request and push emissions directive-validated. - `git diff --check`: passed. Pushed normal follow-up commit `4d626c76`; no force-push, merge, push to main, secret rotation, protection mutation, destructive cleanup, or runner restart performed.
Author
Owner

15:11 PDT CI follow-up evidence:

Positive signal on the repo-owned fix:

  • lint-required-context-exists-in-bp / lint-required-context-exists-in-bp passed on run /molecule-ai/molecule-core/actions/runs/73944/jobs/0; both new pull_request and push emissions were directive-validated and 11 unit tests passed.
  • Lint workflow YAML (Gitea-1.22.6-hostile shapes) passed on run /molecule-ai/molecule-core/actions/runs/73948/jobs/0; 59 workflows checked and 27 tests passed.

Remaining red on this PR appears unrelated to the workflow rename:

  • E2E API Smoke failed in POST /workspaces (alpha/beta) after earlier suites passed.
  • E2E Chat failed with 8 Playwright visibility assertions after Canvas startup.
  • qa-review and security-review are awaiting non-author approvals.

No merge, force-push, push to main, secret rotation, protection mutation, destructive cleanup, or runner restart performed.

15:11 PDT CI follow-up evidence: Positive signal on the repo-owned fix: - `lint-required-context-exists-in-bp / lint-required-context-exists-in-bp` passed on run `/molecule-ai/molecule-core/actions/runs/73944/jobs/0`; both new pull_request and push emissions were directive-validated and 11 unit tests passed. - `Lint workflow YAML (Gitea-1.22.6-hostile shapes)` passed on run `/molecule-ai/molecule-core/actions/runs/73948/jobs/0`; 59 workflows checked and 27 tests passed. Remaining red on this PR appears unrelated to the workflow rename: - E2E API Smoke failed in `POST /workspaces (alpha/beta)` after earlier suites passed. - E2E Chat failed with 8 Playwright visibility assertions after Canvas startup. - `qa-review` and `security-review` are awaiting non-author approvals. No merge, force-push, push to main, secret rotation, protection mutation, destructive cleanup, or runner restart performed.
Author
Owner

needs-hongming / human decision:

Question: Should PR #1574 be routed for QA/security approval now, or should it wait behind the unrelated E2E failures on this branch?

Impact: The repo-owned fix checks are green and the change addresses the main push failures in production auto-deploy/status-reaper caused by the slash-containing workflow name. Until this lands, main continues emitting old Lint no tenant GITEA/GITHUB token write contexts and those operational jobs keep failing.

Evidence:

  • lint-required-context-exists-in-bp passed on /molecule-ai/molecule-core/actions/runs/73944/jobs/0 with both new emissions directive-validated.
  • lint-workflow-yaml passed on /molecule-ai/molecule-core/actions/runs/73948/jobs/0 with 59 workflows checked.
  • Remaining PR reds are unrelated E2E API Smoke (POST /workspaces alpha/beta), E2E Chat Playwright visibility failures, and QA/security review gates.

No merge or protection change requested/performed.

needs-hongming / human decision: Question: Should PR #1574 be routed for QA/security approval now, or should it wait behind the unrelated E2E failures on this branch? Impact: The repo-owned fix checks are green and the change addresses the main push failures in production auto-deploy/status-reaper caused by the slash-containing workflow name. Until this lands, main continues emitting old `Lint no tenant GITEA/GITHUB token write` contexts and those operational jobs keep failing. Evidence: - `lint-required-context-exists-in-bp` passed on `/molecule-ai/molecule-core/actions/runs/73944/jobs/0` with both new emissions directive-validated. - `lint-workflow-yaml` passed on `/molecule-ai/molecule-core/actions/runs/73948/jobs/0` with 59 workflows checked. - Remaining PR reds are unrelated E2E API Smoke (`POST /workspaces` alpha/beta), E2E Chat Playwright visibility failures, and QA/security review gates. No merge or protection change requested/performed.
Some optional checks failed
Lint shellcheck (arm64 pilot) / shellcheck-arm64 (pilot) (pull_request) Waiting to run
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 4s
CI / Detect changes (pull_request) Successful in 8s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 20s
E2E Chat / detect-changes (pull_request) Successful in 10s
E2E API Smoke Test / detect-changes (pull_request) Successful in 7s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 8s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 3s
Harness Replays / detect-changes (pull_request) Successful in 5s
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 9s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 4s
Lint no tenant Gitea-GitHub token write / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 4s
CI / Platform (Go) (pull_request) Successful in 2m41s
lint-continue-on-error-tracking / lint-continue-on-error-tracking (pull_request) Successful in 1m17s
Lint pre-flip continue-on-error / Verify continue-on-error flips have run-log proof (pull_request) Successful in 1m9s
lint-required-context-exists-in-bp / lint-required-context-exists-in-bp (pull_request) Successful in 33s
lint-required-workflows-docker-host-pinned / Lint docker-host pin on docker-touching workflows (pull_request) Successful in 3s
publish-runtime-autobump / bump-and-tag (pull_request) Has been skipped
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 6s
gate-check-v3 / gate-check (pull_request) Successful in 6s
qa-review / approved (pull_request) Failing after 4s
Lint workflow YAML (Gitea-1.22.6-hostile shapes) / Lint workflow YAML for Gitea-1.22.6-hostile shapes (pull_request) Successful in 30s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 3s
publish-runtime-autobump / pr-validate (pull_request) Successful in 35s
security-review / approved (pull_request) Failing after 3s
sop-checklist / na-declarations (pull_request) N/A: (none)
sop-checklist / all-items-acked (pull_request) Successful in 4s
sop-tier-check / tier-check (pull_request) Successful in 5s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m10s
Ops Scripts Tests / Ops scripts (unittest) (pull_request) Successful in 29s
CI / Canvas (Next.js) (pull_request) Successful in 5m27s
CI / Python Lint & Test (pull_request) Successful in 6m34s
CI / all-required (pull_request) Successful in 6m26s
Required
Details
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 2s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 53s
Harness Replays / Harness Replays (pull_request) Successful in 2s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Failing after 2m7s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Successful in 2m41s
E2E Chat / E2E Chat (pull_request) Failing after 7m6s
This pull request doesn't have enough required approvals yet. 0 of 2 official approvals granted.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/workflow-name-no-token-slash:fix/workflow-name-no-token-slash
git checkout fix/workflow-name-no-token-slash
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#1574