Skip to content

release: manual health check, final check and the updated satellite template - #11

Merged
Seungpyo1007 merged 16 commits into
mainfrom
develop
Nov 17, 2026
Merged

Seungpyo1007 merged 16 commits into
mainfrom
develop

Conversation

@TechEngineBot

Copy link
Copy Markdown
Member

Ships four PRs from develop to main:

Read each active workflow file on every tracked branch and flag any secret
other than GITHUB_TOKEN. Automation running under a personal token got a
maintainer's account suspended; this makes it visible the day it returns.

Disabled workflows are skipped, so turning one off in the Actions settings
clears the finding. A repository that genuinely needs another secret lists
it under allowed_secrets in repos.json.

The tests also pin TechMachine's own workflows and the generated satellite
workflows to GITHUB_TOKEN only.
The health check no longer runs on a schedule, updates the Org health
report issue, or mentions anyone. A person starts it from the Actions tab
and the report goes to the run's step summary. An account here was
suspended over automation, so nothing in this repository acts on its own.

The workflow keeps GITHUB_TOKEN with read-only permissions. Every action
in health.yml and test.yml is a GitHub-owned action pinned by full SHA.

TechAPI's label-triggered final check is the one sanctioned use of
TechEngineBot's token, so it is allowed for that repository only.
Adding the final-check label to a PR runs TechMachine's checks (tests
including a generated satellite repo, repos.json, syntax, SHA-pinned
GitHub-owned actions) and TechEngineBot leaves one comment with the
verdict, edited in place when the label is added again. It replaces
Copilot as the reviewer.

Same design as TechAPI's final check: the check job runs PR code with no
secrets and a read-only token, and only the comment job sees
TECHENGINEBOT_TOKEN, which must be a fine-grained token of TechEngineBot.
Logs are fenced with backticks and @ removed so they cannot mention anyone.
The check job runs the PR's code with sudo on the runner, so the body it
outputs cannot be trusted to be clean. The comment job now drops every @
and breaks issue references and issue/PR links before posting, and caps
the body below GitHub's comment limit.

The health check allows TECHENGINEBOT_TOKEN for TechEngine, game-catalog
and cpu-engineering-samples too, whose label-triggered final checks read it.
The sanitiser held a literal U+200B, invisible in review and easy to lose
in a copy. String.fromCharCode(0x200b) gives the same value in plain ASCII,
as TechAPI's final check now does.
GitHub's dynamic "Dependabot Updates" workflow cannot be disabled, and its
old runs outlive the .github/dependabot.yml that started them. TechAPI
removed that file in #378, yet its cancelled and out-of-disk Dependabot
runs kept showing up as problems.

When a repository has the dynamic Dependabot workflow but no
.github/dependabot.yml, the workflow is now skipped as a leftover. The
file is looked up once per repository, only where that workflow exists;
a 404 means absent, and any other error keeps the workflow checked.
GitHub reads Dependabot's config from either name. The lookup now tries
.yml first and .yaml only when that is a 404; only two 404s mean there
is no config. Any other error still counts as configured.
…ellites

The template workflows used tag pins, validate-data had no permissions
block and carried a comment about game-catalog's record count. They now
take the form game-catalog runs: the same pinned SHAs, read-only
permissions, concurrency and timeouts.
Both satellites run a final-check workflow and the template had none. The
new one is game-catalog's with the repository and category filled in.
The checklist now registers the repo in repos.json with its allowed secret
and names the label and the token to set up, and the tests allow
TECHENGINEBOT_TOKEN in final-check.yml only.
New satellites start with the maintainers team as code owners and a short
PR template: title convention, develop as the target, validator and tests,
cited sources, and the sidebar filled in by hand. Issue templates are left
to the organisation's shared ones. The template validator's docstring no
longer quotes game-catalog's record count.
The pinned-action rule was a grep inside final-check.yml that only saw
this repository's own workflows, so the template could generate tag-pinned
ones unnoticed. It is now a test over both directories, and the final
check runs that test. CI installs a fixed pytest instead of the newest.
The .github repo has no workflows and no endpoint; the check lists its
workflows, finds none and reports nothing, which a test now pins down.
TechMachine was the one repository with workflows that nothing watched.
Generating a repository must produce exactly the expected tree, so adding
or dropping a template file is a deliberate change to the test as well.
… org's repositories

The README now lists what the health check actually inspects, the files
the scaffolder writes and the steps for creating a satellite, with a short
table of the organisation's repositories.
Every tracked text file is already LF; this keeps it that way on Windows.
The organisation has no teams, so a team handle would own nothing.
@TechEngineBot TechEngineBot added this to the Org tooling (2026) milestone Nov 17, 2026
@TechEngineBot TechEngineBot added enhancement New feature or request ci Workflows and CI labels Nov 17, 2026
@Seungpyo1007
Seungpyo1007 merged commit 13cf23d into main Nov 17, 2026
6 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in TechAPI-Project Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Workflows and CI enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants