Skip to content

ci(workflows): use source-scoped App token for linked PR feedback - #154

Merged
vitormattos merged 1 commit into
mainfrom
ci/sync-scoped-submodule-source-feedback-20261122
Nov 22, 2026
Merged

vitormattos merged 1 commit into
mainfrom
ci/sync-scoped-submodule-source-feedback-20261122

Conversation

@vitormattos

Copy link
Copy Markdown
Member

Problem

The /libresign-pr workflow created the signed LibreSign #9635 and #9636 PRs successfully, then incorrectly failed in the optional source-PR comment step with HTTP 403 Resource not accessible by integration.

The GITHUB_TOKEN advertises Issues: write in the job log but GitHub rejects both the prior GraphQL and REST acknowledgment attempts. The linked PR commits are signed, DCO-compliant and otherwise valid.

Change

Sync only .github/workflows/command-submodule-pr.yml from the central LibreCodeCoop/.github#131 template.

  • Preserve strict cryptographic verification of the created destination PR as a mandatory step.
  • Acquire a short-lived GitHub App token scoped only to the LibreSign/3rdparty source repository with permission-issues: write.
  • Use that token for the optional source PR acknowledgment, making only this notification best-effort.

The resulting file was checked against the current central template with the LibreSign-specific command and target substitutions. No permission broadening on the destination repository, no workflow-action pin changes, and no changes to generated vendor code.

Validation

Require successful current-HEAD checks before merging. A subsequent /libresign-pr command is needed to confirm successful source feedback with the new scoped token.

Sync the merged LibreCodeCoop/.github#131 template to the 3rdparty
consumer workflow. Keep signed destination verification mandatory and
use an isolated temporary Issues:write token for optional source feedback.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos
vitormattos merged commit 690e499 into main Nov 22, 2026
6 checks passed
@vitormattos
vitormattos deleted the ci/sync-scoped-submodule-source-feedback-20261122 branch November 22, 2026 16:13
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