Skip to content

fix: skip bootstrapping-infra job for fork PRs - #4090

Draft
ayushhgarg-work with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-github-actions-build-job-02fe3d46-6cb5-4762-bfe0-b3e990802013
Draft

ayushhgarg-work with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-github-actions-build-job-02fe3d46-6cb5-4762-bfe0-b3e990802013

Conversation

Copilot AI commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Fork PRs don't receive repository secrets, causing azure/login@v1 to fail with "Not all values are present" when OIDC_AZURE_CLIENT_ID/OIDC_AZURE_TENANT_ID resolve to empty strings.

Change

Added a job-level if condition to .github/workflows/bootstrapping-infra.yml:

jobs:
  build:
    if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
  • workflow_dispatch / schedule: unaffected, always runs
  • PRs from the same repo: unaffected, still runs
  • PRs from forks: job is skipped — no credentials available, infrastructure bootstrapping cannot proceed anyway

… failure

Fork PRs don't have access to repository secrets (OIDC_AZURE_CLIENT_ID,
OIDC_AZURE_TENANT_ID, OIDC_AZURE_SUBSCRIPTION_ID), causing the azure/login
step to fail. Add a job-level `if` condition to skip execution when the PR
originates from a forked repository.
Copilot AI changed the title [WIP] Fix failing GitHub Actions job build fix: skip bootstrapping-infra job for fork PRs Jul 30, 2026
Copilot AI requested a review from ayushhgarg-work July 30, 2026 13:40

This branch has not been deployed

No deployments
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