Repository navigation
fix(ci): acknowledge submodule PRs with a source-scoped GitHub App token - #131
Merged
vitormattos merged 1 commit intoNov 22, 2026
Merged
Conversation
The source workflow has an Issues:write GITHUB_TOKEN but GitHub returns HTTP 403 when posting the linked-PR acknowledgment. Keep signed target verification mandatory and make the feedback best-effort using a short-lived source-repository GitHub App token, without broadening destination access. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
vitormattos
deleted the
fix/submodule-source-feedback-scoped-app-token-20261122
branch
November 22, 2026 16:09
This was referenced Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
/libresign-prworkflow successfully creates a cryptographically verified, DCO-signed destination PR, but then fails at the optional final acknowledgment step on the source repository.HTTP 403 Resource not accessible by integrationwhile usingGH_TOKEN: ${{ github.token }}.Issues: write, so changing from GraphQL to REST alone did not resolve the access restriction./composer-updateworkflow uses a short-lived, source-scoped GitHub App token to post feedback successfully.Change
Verify signed destinationstep.permission-issues: write, using trusted GitHub repository context.No token, private key, or additional repository-wide permissions are committed.
Validation
python3 -m unittest discover -s tests -p 'test_*.py': 124 tests passed.python3 scripts/render_upstream.py check upstream/templates.json: passed.actionlint workflow-templates/command-submodule-pr.yml: passed.git diff --check: passed.CI
actionlint,zizmor, Python tests, policy and DCO must all pass before merging. After integration, synchronize the consumer workflow intoLibreSign/3rdpartyand verify on a subsequent real command.