mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
[release/v7.5.6] [StepSecurity] ci: Harden GitHub Actions tokens (#27224)
This commit is contained in:
@@ -10,6 +10,9 @@ on:
|
||||
paths:
|
||||
- ".github/workflows/copilot-setup-steps.yml"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
|
||||
# See https://docs.github.com/en/copilot/customizing-copilot/customizing-the-development-environment-for-copilot-coding-agent
|
||||
|
||||
@@ -13,6 +13,9 @@ env:
|
||||
SYSTEM_ARTIFACTSDIRECTORY: ${{ github.workspace }}/artifacts
|
||||
BUILD_ARTIFACTSTAGINGDIRECTORY: ${{ github.workspace }}/artifacts
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
package:
|
||||
name: ${{ matrix.architecture }} - ${{ matrix.channel }}
|
||||
|
||||
@@ -14,6 +14,9 @@ on:
|
||||
required: false
|
||||
default: testResults-xunit
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
xunit:
|
||||
name: Run xUnit Tests
|
||||
|
||||
Reference in New Issue
Block a user