Skip to content

use PAT when pushing to homebrew repo - #177

Merged
isourabh merged 2 commits into
mainfrom
users/sotripathi/fix-pipeline-homebrew-release
Sep 4, 2026
Merged

use PAT when pushing to homebrew repo#177
isourabh merged 2 commits into
mainfrom
users/sotripathi/fix-pipeline-homebrew-release

Conversation

@isourabh

@isourabh isourabh commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Pipeline fails with auth issue at Git operations step with Authentication failure. So trying with using the PAT token in the push command

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The current approach unnecessarily embeds the PAT into the clone remote for a public repo and uses a non-Azure logging command format for the new “PAT is empty” failure path.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Updates the Azure Pipelines release workflow so Homebrew tap updates authenticate using a GitHub Personal Access Token (PAT), enabling non-interactive pushes to microsoft/homebrew-msstore-cli.

Changes:

  • Switches Git authentication to x-access-token style credentials for GitHub HTTPS operations.
  • Adds PAT environment injection to the “Git operations” task and pushes using an authenticated URL.
File summaries
File Description
.pipelines/publish_release.yml Adjusts Homebrew tap checkout/push Git commands to use a PAT for authenticated operations.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .pipelines/publish_release.yml Outdated
Comment thread .pipelines/publish_release.yml

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The changes are narrow, align with the stated pipeline auth failure, and correctly scope PAT usage to the push step with a fast-fail check.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@ankur13anand

Copy link
Copy Markdown

Approved

@ankur13anand ankur13anand left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Approved

@isourabh
isourabh merged commit 901c6f3 into main Sep 4, 2026
14 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