Commit Graph
5 Commits
Author SHA1 Message Date
Zakk 89662fd5b9 scripts, .github: reject only AI tools in Co-authored-by
Rejecting every Co-authored-by line also rejected human co-authors,
including the line GitHub adds when a contributor commits a review
suggestion. Reject only the identities that AI tools add on their own:
anthropic.com, openai.com and cursor.com addresses, Copilot and [bot]
accounts. Other AI help still goes in Assisted-by.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Zakk <zakk@gentoozh.org>
2026-11-28 00:54:50 +11:00
Zakk dc76699621 scripts, .github: reject Co-authored-by trailers
AI help is marked with Assisted-by, which GitHub shows as plain text.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-11-22 09:41:17 +11:00
Zakk ab536be951 .github: keep tokens out of builds and sanitize bot comments
The autobump engine opens pull requests with gh and git push, so its
environment must keep GH_TOKEN. Portage passes that environment into
every ebuild phase, which builds unreviewed upstream releases, so both
autobump workflows add the token variables to ENV_UNSET in make.conf.
ENV_UNSET is incremental and needs EAPI 7, which every overlay ebuild
already uses.

The nvchecker job exports a personal access token right after its pip
install, so an unpinned release of any dependency could read it. The
job now installs exact versions with hashes for the runner's Python
3.12. Regenerate .github/nvchecker-requirements.txt with:

  printf '%s\n' nvchecker==2.22 jq==1.13.0 portage==3.0.83 |
    uv pip compile - --generate-hashes --python-version 3.12 \
    --no-header --no-annotate

A pull request's own run writes findings.json and the elog artifacts,
so a line starting with a backtick run could close the code fence and
post markdown under github-actions[bot]. Backticks in that text now
become quotes. The commit subject in the pull request rules comment is
not fenced at all, so it now goes into a code span with its backticks
and control characters replaced.

emerge-targets.sh turned a new top-level file such as SECURITY.md into
the atom SECURITY.md/, which failed emerge-on-pr, so paths without
category/package/file are skipped.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-11-18 01:11:14 +11:00
Zakk 3b3edd4462 .github: use one naming and formatting style across workflows
Workflow names now match their file stems, so the Actions list and the
files read the same; generate-deps-relation-r1.yml becomes
deps-table.yml after the branch it maintains. Steps are lowercase and
verb-first, every step is named, and the autobump-rb checkout has one
name everywhere.

Also use 4-space step indentation, fromJSON, bare if: expressions,
github.actor for every ghcr login, uppercase env names, and the
GITHUB_REPOSITORY and GITHUB_REPOSITORY_OWNER variables the runner
already sets instead of REPO and OWNER copies. No behaviour changes.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-11 04:30:43 +11:00
Zakk b598d725b8 .github: check the commit rules as a pull request job
pkgcheck-comment closes a pull request only after pkgcheck has finished,
and its check is not attached to the pull request, so a maintainer could
merge before it ran. A commits job in pkgcheck fails on the same rules
and can be required before merging. Both read the rules from
scripts/commit-rules.sh.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-11 04:01:09 +11:00