Skip to content

Use GitHub App token for vendorHash auto-fix workflow#251

Merged
jupblb merged 1 commit into
mainfrom
michal/renovate-nix-fix
May 12, 2026
Merged

Use GitHub App token for vendorHash auto-fix workflow#251
jupblb merged 1 commit into
mainfrom
michal/renovate-nix-fix

Conversation

@jupblb
Copy link
Copy Markdown
Collaborator

@jupblb jupblb commented May 12, 2026

The previous attempt pushed corrective commits using GITHUB_TOKEN and re-triggered the test workflow via workflow_dispatch. That dispatch ran, but verified empirically on #248: workflow_dispatch checks are excluded from the PR's status, so the merge box still showed no checks even though the run was on the PR HEAD SHA.

New behavior: push the corrective commit using a GitHub App token. The non-GITHUB_TOKEN identity makes the push fire pull_request synchronize naturally, triggering checks the PR UI displays.

Also widen scope from Renovate-authored branches to any same-repo PR.

The previous attempt pushed corrective commits using GITHUB_TOKEN and
re-triggered the test workflow via workflow_dispatch. That dispatch ran,
but verified empirically on PR #248: workflow_dispatch check_runs are
excluded from the PR's statusCheckRollup, so the merge box still showed
no checks even though the run was on the PR HEAD SHA. This is a known
GitHub limitation (https://stackoverflow.com/q/74722061,
https://github.com/orgs/community/discussions/24616).

Switch to the pattern peter-evans/create-pull-request, DeterminateSystems'
update-flake-lock and Mic92/nix-update converge on: push the corrective
commit using a GitHub App token. The non-GITHUB_TOKEN identity makes the
push fire pull_request synchronize naturally, producing a check_suite the
PR UI displays. Drop the workflow_dispatch indirection from test.yaml.

Also widen scope from Renovate-authored branches to any same-repo PR,
matching the canonical published recipe in
peter-evans/create-pull-request docs (autopep8 example). Per the GitHub
Security Lab guidance the same-repo filter is the security boundary;
the renovate/ prefix was just a noise/scope gate.
@jupblb jupblb requested a review from eseliger May 12, 2026 08:24
@jupblb jupblb enabled auto-merge (squash) May 12, 2026 08:25
@jupblb jupblb merged commit 96d1c93 into main May 12, 2026
14 checks passed
@jupblb jupblb deleted the michal/renovate-nix-fix branch May 12, 2026 09:36
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.

2 participants