Skip to content

Fix PR dashboard workflow configuration#8

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

Fix PR dashboard workflow configuration#8
trask merged 1 commit into
open-telemetry:mainfrom
trask:fixes

Conversation

@trask

@trask trask commented Jun 25, 2026

Copy link
Copy Markdown
Member

Declare and pass the PR dashboard reusable workflow secrets explicitly. The called workflow now defines the three required secrets in workflow_call.secrets, and the caller forwards only those values instead of relying on direct secret lookup from the called jobs' protected environment.

The called jobs keep environment: protected for protected environment variables such as PR_DASHBOARD_APP_ID, but secret values are now part of the reusable workflow call contract.

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 configuration issues in the recently added reusable PR dashboard workflows. The caller (pull-request-dashboard.yml) now grants the GITHUB_TOKEN permissions required by the nested reusable-workflow jobs and passes the dashboard secrets explicitly, the reusable repo workflow declares those secrets as required inputs, and the Netlify deploy workflow recreates its dispatcher environment variables before re-scoping them to production/functions.

Changes:

  • Add a job-level permissions: block to run-repo-dashboard matching the union of the called jobs' needs, and pass PR_DASHBOARD_PRIVATE_KEY, COPILOT_GITHUB_TOKEN, and SLACK_WEBHOOK_URL explicitly via secrets:.
  • Declare those three secrets (all required: true) under on.workflow_call.secrets in the reusable repo workflow.
  • Unset the two managed Netlify dispatcher env vars (with || true) before re-setting them to production/functions scope.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/pull-request-dashboard.yml Adds explicit permissions and secrets to the run-repo-dashboard reusable-workflow call; removes the environment-resolution comment.
.github/workflows/pull-request-dashboard-repo.yml Declares PR_DASHBOARD_PRIVATE_KEY, COPILOT_GITHUB_TOKEN, and SLACK_WEBHOOK_URL as required workflow_call secrets.
.github/workflows/deploy-pull-request-dashboard-webhook.yml Unsets the managed dispatcher env vars before re-creating them with production/functions scope.

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

Comment thread .github/workflows/pull-request-dashboard.yml

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/pull-request-dashboard.yml

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

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

@trask trask requested a review from Copilot June 25, 2026 16:50
@trask trask marked this pull request as ready for review June 25, 2026 16:50
@trask trask requested a review from a team as a code owner June 25, 2026 16:50
@trask trask force-pushed the fixes branch 2 times, most recently from db86038 to 9cbd255 Compare June 25, 2026 16:50

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

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

@trask trask merged commit a1337ab 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