mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
[release/v7.5] Update GitHub Actions to work in private GitHub repo (#25332)
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
This commit is contained in:
co-authored by
Travis Plunk
parent
de9f4c8c17
commit
2e0faf7ca3
@@ -7,6 +7,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
run:
|
||||
if: github.repository_owner == 'PowerShell'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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) }}
|
||||
|
||||
@@ -11,6 +11,8 @@ permissions:
|
||||
jobs:
|
||||
markdown-link-check:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository_owner == 'PowerShell'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
- uses: gaurav-nelson/github-action-markdown-link-check@5c5dfc0ac2e225883c0e5f03a85311ec2830d368 # v1
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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) }}
|
||||
|
||||
Reference in New Issue
Block a user