Update GitHub Actions to work in private GitHub repo#25197
Merged
TravisEz13 merged 3 commits intoPowerShell:masterfrom Mar 22, 2025
Merged
Update GitHub Actions to work in private GitHub repo#25197TravisEz13 merged 3 commits intoPowerShell:masterfrom
TravisEz13 merged 3 commits intoPowerShell:masterfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request updates several GitHub Actions workflows so that they run only when the repository owner meets specific criteria and updates workflow references from the default branch name to a versioned tag. The changes ensure that workflows execute only in appropriate repository contexts and reference a specific release version rather than the master branch.
Reviewed Changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/macos-ci.yml | Added owner condition to the change detection job and updated ready-to-merge reference. |
| .github/workflows/windows-ci.yml | Added owner condition to the change detection job and updated ready-to-merge reference. |
| .github/workflows/linux-ci.yml | Added owner condition to the change detection job and updated ready-to-merge reference. |
| .github/workflows/AssignPrs.yml | Added an if condition to restrict execution based on repository owner. |
| .github/workflows/scorecards.yml | Added an if condition to restrict execution based on repository owner. |
| .github/workflows/processReminders.yml | Added an if condition to restrict execution based on repository owner. |
| .github/workflows/markdownLink.yml | Added an if condition to restrict execution based on repository owner. |
Files not reviewed (1)
- .github/workflows/backport.yml: Language not supported
adityapatwardhan
approved these changes
Mar 19, 2025
Member
Author
|
/azp run PowerShell-CI-linux-packaging, PowerShell-Windows-Packaging-CI |
|
Azure Pipelines could not run because the pipeline triggers exclude this branch/path. |
Contributor
|
📣 Hey @TravisEz13, how did we do? We would love to hear your feedback with the link below! 🗣️ 🔗 https://aka.ms/PSRepoFeedback |
pwshBot
pushed a commit
to pwshBot/PowerShell
that referenced
this pull request
Apr 11, 2025
9 tasks
pwshBot
pushed a commit
to pwshBot/PowerShell
that referenced
this pull request
Apr 21, 2025
9 tasks
SIRMARGIN
pushed a commit
to SIRMARGIN/PowerShell
that referenced
this pull request
Dec 12, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to the GitHub Actions workflows to improve conditional execution and update workflow references. The most important changes include adding conditional checks based on the repository owner and updating workflow references to specific versions.
Conditional execution based on repository owner:
.github/workflows/AssignPrs.yml: Added a condition to execute the job only if the repository owner is 'PowerShell'..github/workflows/linux-ci.yml: Added conditions to execute jobs only if the repository owner starts with 'azure' or is 'PowerShell'..github/workflows/macos-ci.yml: Added conditions to execute jobs only if the repository owner starts with 'azure' or is 'PowerShell'..github/workflows/windows-ci.yml: Added conditions to execute jobs only if the repository owner starts with 'azure' or is 'PowerShell'..github/workflows/markdownLink.yml: Added a condition to execute the job only if the repository owner is 'PowerShell'..github/workflows/processReminders.yml: Added a condition to execute the job only if the repository owner is 'PowerShell'..github/workflows/scorecards.yml: Added a condition to execute the job only if the repository owner is 'PowerShell'.Updating workflow references:
.github/workflows/linux-ci.yml: Updated the reference for theready-to-mergeworkflow frommastertov1.0.0..github/workflows/macos-ci.yml: Updated the reference for theready-to-mergeworkflow frommastertov1.0.0..github/workflows/windows-ci.yml: Updated the reference for theready-to-mergeworkflow frommastertov1.0.0.Additionally, the
.github/workflows/backport.ymlfile has been removed entirely.