[release/v7.6] Update outdated package references (#26471)

Co-authored-by: PowerShell Team Bot <69177312+pwshBot@users.noreply.github.com>
Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
This commit is contained in:
Travis Plunk
2025-11-19 10:01:24 -08:00
committed by GitHub
co-authored by PowerShell Team Bot Dongbo Wang
parent 44aa739707
commit e9af4e7710
14 changed files with 145 additions and 135 deletions
+60 -59
View File
@@ -161,64 +161,65 @@ jobs:
- name: Verify xUnit test results
uses: "./.github/actions/test/verify_xunit"
analyze:
permissions:
actions: read # for github/codeql-action/init to get workflow details
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/analyze to upload SARIF results
name: Analyze
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.source == 'true' }}
strategy:
fail-fast: false
matrix:
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
language: ['csharp']
# Learn more...
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: '0'
- uses: actions/setup-dotnet@v5
with:
global-json-file: ./global.json
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@192325c86100d080feab897ff886c34abd4c83a3 # v3.29.5
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
- run: |
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
name: Capture Environment
shell: pwsh
- run: |
Import-Module .\tools\ci.psm1
Invoke-CIInstall -SkipUser
name: Bootstrap
shell: pwsh
- run: |
Import-Module .\tools\ci.psm1
Invoke-CIBuild
name: Build
shell: pwsh
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@192325c86100d080feab897ff886c34abd4c83a3 # v3.29.5
## Temporarily disable the CodeQL analysis on Linux as it doesn't work for .NET SDK 10-rc.2.
# analyze:
# permissions:
# actions: read # for github/codeql-action/init to get workflow details
# contents: read # for actions/checkout to fetch code
# security-events: write # for github/codeql-action/analyze to upload SARIF results
# name: Analyze
# runs-on: ubuntu-latest
# needs: changes
# if: ${{ needs.changes.outputs.source == 'true' }}
#
# strategy:
# fail-fast: false
# matrix:
# # Override automatic language detection by changing the below list
# # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
# language: ['csharp']
# # Learn more...
# # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
#
# steps:
# - name: Checkout repository
# uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
# with:
# fetch-depth: '0'
#
# - uses: actions/setup-dotnet@v5
# with:
# global-json-file: ./global.json
#
# # Initializes the CodeQL tools for scanning.
# - name: Initialize CodeQL
# uses: github/codeql-action/init@192325c86100d080feab897ff886c34abd4c83a3 # v3.29.5
# with:
# languages: ${{ matrix.language }}
# # If you wish to specify custom queries, you can do so here or in a config file.
# # By default, queries listed here will override any specified in a config file.
# # Prefix the list here with "+" to use these queries and those in the config file.
# # queries: ./path/to/local/query, your-org/your-repo/queries@main
#
# - run: |
# Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
# name: Capture Environment
# shell: pwsh
#
# - run: |
# Import-Module .\tools\ci.psm1
# Invoke-CIInstall -SkipUser
# name: Bootstrap
# shell: pwsh
#
# - run: |
# Import-Module .\tools\ci.psm1
# Invoke-CIBuild
# name: Build
# shell: pwsh
#
# - name: Perform CodeQL Analysis
# uses: github/codeql-action/analyze@192325c86100d080feab897ff886c34abd4c83a3 # v3.29.5
ready_to_merge:
name: Linux ready to merge
@@ -228,7 +229,7 @@ jobs:
- linux_test_elevated_others
- linux_test_unelevated_ci
- linux_test_unelevated_others
- analyze
# - analyze
if: always()
uses: PowerShell/compliance/.github/workflows/ready-to-merge.yml@v1.0.0
with: