Commit Graph
11 Commits
Author SHA1 Message Date
Zakk 11496921c1 .github: cancel superseded runs and fix check names
Cancel pkgcheck and pr-rules runs of a pull request that a newer push supersedes, and skip the report upload on cancellation so a half-finished scan is never posted.
Name the two target-selection jobs after their workflow, since both showed up as "scan changed ebuilds".
Give the tatt job a static name, because a skipped job never expands its matrix and showed the raw expression.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-20 16:07:56 +11:00
Zakk d09a49ff02 .github: check commit rules and the PR template in pr-rules
Contributors delete the template, so reviewers cannot see whether
pkgcheck ran or AI was used. The boxes stay optional because not every
contributor can run pkgcheck with --net and the AI box applies only when
AI was used. The autobump bot does not fill in the template and is
skipped.

The commit rules move from pkgcheck into the same workflow, because both
checks read the pull request rather than the ebuilds and must rerun when
the description is edited, which pkgcheck should not.

pkgcheck-comment now also closes a pull request without the template,
and its reply lists the commit and template problems in separate
sections.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-11 05:45:11 +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 8900587f7b .github: narrow token scopes and fix silent CI failures
Jobs inherited write scopes they never use, so each workflow now
defaults to contents: read and grants pull-requests: read or
packages: write only to the jobs whose GITHUB_TOKEN calls need them.
The autobump bump job keeps its own block.

Failures that read as success now fail the step: a failed gh call in
nvchecker-check.py no longer reads as "no issue" and opens a duplicate,
and fleet-keeper no longer reports "found 0" when listing repositories
or workflows fails.

emerge-targets.sh took =cat/foo-bar-1.0 for a version of cat/foo, so a
PR touching both dropped cat/foo; only a digit after the dash starts a
version.

setup-gentoo added the x86-64 binhost on arm64 as well; it is now
added on amd64 only.

mirror-to-codeberg trusted whatever ssh-keyscan returned while holding
a write key; the host key is now pinned and checked.

stage3 cleanup ran even when build was skipped on a fork schedule.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-11 04:26:16 +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
Zakk 756d956d1e .github/workflows: trim comments, drop autobump-selftest
Long inline shell and repeated explanations obscure the job sequence.
The engine already has its own selftest.

Because one failed issue update must not cancel the others, disable
matrix fail-fast. An empty eix result must produce an empty package map.
Pin the push action because the dependency-table job grants it write
access.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-02 01:54:16 +10:00
Zakk ed5071f22d .github/workflows: pkgcheck: comment scan results for changed packages
因为仓库级扫描只在 NonexistentDeps 上失败,所以改动的 ebuild 上 warning 级别的问题
不会让 CI 变红。

因为 pkgcheck 会 source 它扫描的 ebuild,等于执行 PR 里的代码,所以扫描只拿只读
token,评论由 workflow_run 另起一个不检出该代码的任务发出。

因为包里原有的问题会淹没 PR 引入的那几条,所以基线分支也扫一遍,评论只列新增的。
2026-07-29 22:40:59 +10:00
dependabot[bot] 111425d7b9 build(deps): bump actions/checkout from 6 to 7
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-22 19:23:50 +08:00
peeweep 7924fd8365 .github/workflows: pkgcheck: explicitly set args
The GitHub Action `pkgcore/pkgcheck-action` injects default parameters
like `--exit GentooCI` which can interfere with our desired setup.
By explicitly defining `args` for checks, keywords, and exit conditions,
we ensure the default action parameters do not override our configuration.

Signed-off-by: jinqiang zhang <peeweep@0x0.ee>
2026-03-15 10:49:58 +08:00
peeweep 93737dd260 .github/workflows: pkgcheck: remove path-ignored
We need pkgcheck always scan the whole overlay

Signed-off-by: jinqiang zhang <peeweep@0x0.ee>
2026-03-15 09:30:55 +08:00
peeweep adc38e7ad0 .github/workflows: pkgcheck: rename yml
Signed-off-by: jinqiang zhang <peeweep@0x0.ee>
2026-03-14 06:25:07 +08:00