Skip to content

The publication run proposes the catalogue as a GitHub App, so its request gets its checks (#167) - #172

Merged
iderex merged 1 commit into
mainfrom
publisher-app-token-167-b
Sep 5, 2026
Merged

iderex merged 1 commit into
mainfrom
publisher-app-token-167-b

Conversation

@iderex

@iderex iderex commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

For #167. The daily publication run opens the catalogue pull request with its own token, and GitHub creates no workflow runs for events made with that token, so the nineteen required checks never arrived and a hand closed and reopened every such request.

What changes

  • publish.yml mints a token from the publisher App (installed on this repository alone, contents: write and pull_requests: write, key and id as Actions secrets) with the pinned actions/create-github-app-token and hands it to go run . publish carry. The job's own permissions shrink to the read the checkout needs.
  • dco.yml skips commits authored by any GitHub App (*[bot]@users.noreply.github.com), as it skipped Dependabot and the run itself: a bot cannot certify the DCO, and the publisher now commits as one.

Why an App and not dispatchable workflows

Making the six gate workflows dispatchable would ask dco.yml and dependency-review to take their subject from an input rather than from the pull request, which widens where a green on those contexts can come from, and would have to be repeated for every workflow the ruleset adds. The App is the route GitHub documents for this case, and the ruleset does not change.

Verification

Signed-off-by: Nils Lehnen nils.lehnen@proton.me

…quest gets its checks (#167)

A request opened with the run's own token triggers no workflow, which GitHub states with workflow_dispatch and repository_dispatch as the only exceptions, so every catalogue request stayed BLOCKED until a hand closed and reopened it. The run now mints a token from the publisher App installed on this repository alone, with contents and pull requests and nothing else, and reads, writes and proposes with it; the job keeps only the read the checkout needs. The DCO gate skips commits authored by any GitHub App, as it skipped Dependabot and the run itself, because a bot cannot certify the certificate and the publisher now commits as one.

Signed-off-by: Nils Lehnen <nils.lehnen@proton.me>
@iderex
iderex merged commit 8b0a2c6 into main Sep 5, 2026
36 checks passed
@iderex
iderex deleted the publisher-app-token-167-b branch September 5, 2026 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant