[release/v7.4] Update GitHub Actions to work in private GitHub repo (#25403)

Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
This commit is contained in:
PowerShell Team Bot
2025-04-21 22:24:02 +00:00
committed by GitHub
co-authored by Travis Plunk
parent 4aebcdc493
commit d40de1abd5
9 changed files with 17 additions and 7 deletions
+1
View File
@@ -7,6 +7,7 @@ permissions:
jobs:
run:
if: github.repository_owner == 'PowerShell'
runs-on: ubuntu-latest
permissions:
issues: write
+2
View File
@@ -9,6 +9,8 @@ permissions:
jobs:
reminder:
if: github.repository_owner == 'PowerShell'
permissions:
issues: write # for agrc/create-reminder-action to set reminders on issues
pull-requests: write # for agrc/create-reminder-action to set reminders on PRs
+1 -1
View File
@@ -13,7 +13,7 @@ permissions:
jobs:
verify-labels:
if: github.repository_owner == 'PowerShell'
if: startsWith(github.repository_owner, 'azure') || github.repository_owner == 'PowerShell'
runs-on: ubuntu-latest
steps:
+3 -2
View File
@@ -37,6 +37,7 @@ env:
system_debug: 'false'
jobs:
changes:
if: startsWith(github.repository_owner, 'azure') || github.repository_owner == 'PowerShell'
name: Change Detection
runs-on: ubuntu-latest
# Required permissions
@@ -50,7 +51,7 @@ jobs:
uses: actions/checkout@v4.1.0
# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v3
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.2.0
id: filter
with:
list-files: json
@@ -232,7 +233,7 @@ jobs:
- linux_test_unelevated_others
- analyze
if: always()
uses: PowerShell/compliance/.github/workflows/ready-to-merge.yml@master
uses: PowerShell/compliance/.github/workflows/ready-to-merge.yml@v1.0.0
with:
needs_context: ${{ toJson(needs) }}
# TODO: Enable this when we have a Linux packaging workflow
+3 -2
View File
@@ -38,6 +38,7 @@ jobs:
changes:
name: Change Detection
runs-on: ubuntu-latest
if: startsWith(github.repository_owner, 'azure') || github.repository_owner == 'PowerShell'
# Required permissions
permissions:
pull-requests: read
@@ -49,7 +50,7 @@ jobs:
uses: actions/checkout@v4.1.0
# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v3
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.2.0
id: filter
with:
list-files: json
@@ -186,6 +187,6 @@ jobs:
- macos_test_unelevated_ci
- macos_test_unelevated_others
if: always()
uses: PowerShell/compliance/.github/workflows/ready-to-merge.yml@master
uses: PowerShell/compliance/.github/workflows/ready-to-merge.yml@v1.0.0
with:
needs_context: ${{ toJson(needs) }}
+2
View File
@@ -10,6 +10,8 @@ permissions:
jobs:
markdown-link-check:
runs-on: ubuntu-latest
if: github.repository_owner == 'PowerShell'
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: gaurav-nelson/github-action-markdown-link-check@5c5dfc0ac2e225883c0e5f03a85311ec2830d368 # v1
+1
View File
@@ -10,6 +10,7 @@ permissions:
jobs:
reminder:
if: github.repository_owner == 'PowerShell'
permissions:
issues: write # for agrc/reminder-action to set reminders on issues
pull-requests: write # for agrc/reminder-action to set reminders on PRs
+1
View File
@@ -20,6 +20,7 @@ permissions: read-all
jobs:
analysis:
name: Scorecard analysis
if: github.repository_owner == 'PowerShell'
runs-on: ubuntu-latest
permissions:
# Needed to upload the results to code-scanning dashboard.
+3 -2
View File
@@ -39,6 +39,7 @@ jobs:
changes:
name: Change Detection
runs-on: ubuntu-latest
if: startsWith(github.repository_owner, 'azure') || github.repository_owner == 'PowerShell'
# Required permissions
permissions:
pull-requests: read
@@ -50,7 +51,7 @@ jobs:
uses: actions/checkout@v4.1.0
# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v3
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.2.0
id: filter
with:
list-files: json
@@ -170,6 +171,6 @@ jobs:
- windows_test_unelevated_ci
- windows_test_unelevated_others
if: always()
uses: PowerShell/compliance/.github/workflows/ready-to-merge.yml@master
uses: PowerShell/compliance/.github/workflows/ready-to-merge.yml@v1.0.0
with:
needs_context: ${{ toJson(needs) }}