Skip to content

Two fixes for PR dashboard workflow#7

Merged
trask merged 1 commit into
open-telemetry:mainfrom
trask:fixes
Jun 25, 2026
Merged

Two fixes for PR dashboard workflow#7
trask merged 1 commit into
open-telemetry:mainfrom
trask:fixes

Conversation

@trask

@trask trask commented Jun 25, 2026

Copy link
Copy Markdown
Member

Fix two PR dashboard workflow issues found while deploying/running the reusable dashboard workflows.

The dashboard caller now grants the permissions that the called reusable workflow jobs need, so GitHub Actions validation no longer caps nested jobs at contents: read.

The Netlify webhook deploy now recreates its managed dispatcher environment variables before setting production/function scope, avoiding the Netlify CLI failure when existing variables have outdated context or scope metadata.

Copilot AI review requested due to automatic review settings June 25, 2026 15:32
@trask trask requested a review from a team as a code owner June 25, 2026 15:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes two issues discovered while deploying and running the reusable PR dashboard workflows. The first ensures the caller job grants the GitHub Actions token permissions that the called reusable workflow's jobs require, since reusable-workflow job permissions are capped by the caller. The second makes the Netlify dispatcher environment configuration idempotent by deleting the managed variables before re-setting them with the correct production/functions context and scope.

Changes:

  • Add a permissions block to the run-repo-dashboard caller job matching the exact union of permissions used by the jobs in pull-request-dashboard-repo.yml.
  • Unset the managed Netlify variables (OTELBOT_SHARED_WORKFLOWS_APP_ID, OTELBOT_SHARED_WORKFLOWS_PRIVATE_KEY_BASE64) with --force || true before re-setting them, clearing stale context/scope metadata that caused the Netlify CLI to fail.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/pull-request-dashboard.yml Grants the caller job the permissions union (actions: read, checks: read, contents: write, issues: write, pull-requests: read) needed by the called reusable workflow jobs.
.github/workflows/deploy-pull-request-dashboard-webhook.yml Recreates the dispatcher env vars by unsetting them before re-setting production/functions scope, avoiding CLI failures from outdated context/scope metadata.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@trask trask merged commit 000e346 into open-telemetry:main Jun 25, 2026
5 checks passed
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.

3 participants