Skip to content

Bump actions/upload-artifact from 4.3.0 to 4.6.0 #38

Bump actions/upload-artifact from 4.3.0 to 4.6.0

Bump actions/upload-artifact from 4.3.0 to 4.6.0 #38

# SPDX-License-Identifier: Apache-2.0
# Licensed to the Ed-Fi Alliance under one or more agreements.
# The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
# See the LICENSE and NOTICES files in the project root for more information.
name: On Pull Request - PowerShell
on:
pull_request:
branches:
- main
paths:
- "**/*.ps1"
- "**/*.psm1"
- "**/analyze-repository.yml"
- "**/powershell-analyzer.yml"
workflow_dispatch:
permissions: read-all
jobs:
run-lint:

Check failure on line 22 in .github/workflows/on-pullrequest-powershell.yml

View workflow run for this annotation

GitHub Actions / On Pull Request - PowerShell

Invalid workflow file

The workflow is not valid. .github/workflows/on-pullrequest-powershell.yml (Line: 22, Col: 3): Error calling workflow 'Ed-Fi-Alliance-OSS/Ed-Fi-Actions/.github/workflows/powershell-analyzer.yml@main'. The nested job 'analyze-powershell' is requesting 'actions: read, contents: read', but is only allowed 'actions: none, contents: none'.
name: Linter
uses: Ed-Fi-Alliance-OSS/Ed-Fi-Actions/.github/workflows/powershell-analyzer.yml@main
permissions:
security-events: write
run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout the Actions repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Run Unit Tests
shell: pwsh
working-directory: powershell-analyzer
run: |
$PesterConfig = New-PesterConfiguration
$PesterConfig.TestResult.OutputFormat = "JUnitXml"
$PesterConfig.TestResult.OutputPath = "ps-analyzer.xml"
$PesterConfig.TestResult.Enabled = $True
Invoke-Pester -Configuration $PesterConfig
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
name: Test Results
path: powershell-analyzer/ps-analyzer.xml
event_file:
name: Upload Event File
runs-on: ubuntu-latest
steps:
- name: Upload
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
name: Event File
path: ${{ github.event_path }}