Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 12, 2026

Docs release jobs (GitHub.io publishing, docs.ms metadata updates) were executing in private -pr repositories, potentially causing unintended releases.

Changes

Added repository name check to three docs jobs in eng/pipelines/templates/stages/archetype-python-release.yml:

  • PublishGitHubIODocs - GitHub.io blob storage publishing
  • PublishDocs - Docs.MS metadata release
  • PublishDocsToNightlyBranch - Nightly branch docs publishing

Each job condition now includes not(endsWith(variables['Build.Repository.Name'], '-pr')) to skip execution in private PR repositories.

# Before
condition: and(succeeded(), ne(variables['Skip.PublishDocs'], 'true'))

# After
condition: and(succeeded(), ne(variables['Skip.PublishDocs'], 'true'), not(endsWith(variables['Build.Repository.Name'], '-pr')))

This follows the existing pattern used throughout the codebase for differentiating public from PR repositories.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • scanning-api.github.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>[EngSys] Docs release jobs should only run if executed from public repo</issue_title>
<issue_description>Docs release jobs (e.g. update docs.ms metadata, publish to github.io docs) should only run when the pipeline is being executed from a public repo (i.e. repo name does not have -pr in the suffix).
</issue_description>

<agent_instructions>Update the Azure DevOps YAML. DO NOT modify any files in eng/common. If you need to modify files in eng/common, make a comment in the issue itself.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: danieljurek <2158838+danieljurek@users.noreply.github.com>
Copilot AI changed the title [WIP] Update docs release jobs for public repo execution Restrict docs release jobs to public repository only Feb 12, 2026
Copilot AI requested a review from danieljurek February 12, 2026 19:18
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.

[EngSys] Docs release jobs should only run if executed from public repo

2 participants