Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
cf4611e
(GH-8706) Clarify `about_Environment_Variables` (#8710)
michaeltlombardi Apr 1, 2022
f65cd68
- Update monthly stats and What's New - Added end-of-file markers to …
sdwheeler Apr 1, 2022
5bda02b
(MAINT) Add GHA to check if author can target live (#8712)
michaeltlombardi Apr 1, 2022
f9c269f
Fixes #8716 - Explain the effect of runspaces on script methods and p…
sdwheeler Apr 4, 2022
0902dcd
(MAINT) Add echo to live branch check
michaeltlombardi Apr 5, 2022
0080fb5
Merge pull request #8717 from michaeltlombardi/maint/staging/add-echo…
sdwheeler Apr 5, 2022
978d0b5
Updated quick filter for azps to 7.4.0 (#8719)
mikefrobbins Apr 5, 2022
6040e88
Add note about experimental feature requirements (#8725)
sdwheeler Apr 6, 2022
5043b62
(MAINT) Reimplement GHA for branch auth checking (#8726)
michaeltlombardi Apr 6, 2022
fb40c3c
Formatting fix in Wait-Job.md (#8730)
kevinholtkamp Apr 11, 2022
5e6f6c1
Refactor compatibility article (#8732)
sdwheeler Apr 12, 2022
79f9e2f
(GH-8601) Clarify Include parameter for Copy-Item (#8734)
michaeltlombardi Apr 14, 2022
899a0a3
Clarify the purpose of network hosts (#8737)
sdwheeler Apr 14, 2022
791b0d8
Update 2022-updates.md
sdwheeler Apr 16, 2022
b5321f0
Update list of cmdlets that support -ComputerName (#8742)
sdwheeler Apr 18, 2022
c5c320d
Add hostname to allow list (#8746)
sdwheeler Apr 20, 2022
cd107e1
Fix filename (#8750)
sdwheeler Apr 21, 2022
c88dc3e
Fixes #8744 - Update PowerShellGet install documents (#8752)
sdwheeler Apr 21, 2022
570e2ea
(AB#1942543) Ensure PSConsoleHostReadLine is translatable (#8760)
michaeltlombardi Apr 25, 2022
e73d153
(GH-8759) Update WideControl in about_Format.ps1xml (#8761)
michaeltlombardi Apr 25, 2022
a6d911d
(GH-8757) Clarify remoting in Managing Services (#8762)
michaeltlombardi Apr 25, 2022
1fc9e56
Improve consistency and readability of about_Quoting_Rules (#8764)
Hrxn Apr 26, 2022
e410709
Update quicklink for Az PowerShell
sdwheeler Apr 26, 2022
c0440e9
(GH-8768) Correct EOL for 7.1 & 7.2 (#8769)
michaeltlombardi Apr 27, 2022
b53fe5a
Update Installing-PowerShell-on-Windows.md (#8771)
MikeyBronowski Apr 28, 2022
0f4e794
Fixes #8739 - Update description of PropertyType parameter (#8773)
sdwheeler Apr 28, 2022
c9bed40
(GH-8770) Clarify MSU support is for x64 only (#8774)
michaeltlombardi Apr 29, 2022
8c59547
Update asPowerShell spacing (#8779)
tommymaynard May 3, 2022
093f436
Update monthly stats (#8782)
sdwheeler May 3, 2022
cc80df0
(GH-8777) Reword here-string section for clarity (#8780)
michaeltlombardi May 3, 2022
3687276
Update Hall of Fame (#8783)
sdwheeler May 3, 2022
4928df2
Add examples and clean up descriptions (#8785)
sdwheeler May 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/targeting-valid-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Targeting Valid Branch
on:
pull_request_target:
types:
- opened
- reopened
- synchronize
jobs:
Test:
runs-on: windows-latest
defaults:
run:
shell: pwsh
if: github.base_ref == 'live'
steps:
- name: Authorized to Target Live Branch?
env:
GITHUB_TOKEN: ${{ secrets.VALID_BRANCH_TOKEN }}
run: |
$Owner = '${{ github.event.pull_request.base.repo.owner.login}}'
$Repo = '${{ github.event.pull_request.base.repo.name }}'
$Actor = '${{ github.event.pull_request.user.login }}'

$ResultString = gh api repos/$Owner/$Repo/collaborators/$Actor/permission
$ExitCode = $LASTEXITCODE
if ($ExitCode -ne 0) {
throw "GitHub API call failed with exit code ${ExitCode}:`n$ResultString"
}

$Permissions = $ResultString
| ConvertFrom-Json
| Select-Object -Property @{ Name = 'Permissions' ; Expression = { $_.user.permissions } }
| Select-Object -ExpandProperty Permissions

if ($null -eq $Permissions) {
throw "Unable to retrieve permissions for author '$Actor':`n$ResultString"
}

echo "Author '$Actor' has permissions:`n$($Permissions | Format-List | Out-String)"

if ($Permissions.admin -or $Permissions.maintain) {
echo "Author has permissions to target ${{ github.base_ref }}"
} else {
throw "Author does not have permissions to target ${{ github.base_ref }}"
}
Loading