[release/v7.5.6] [StepSecurity] ci: Harden GitHub Actions tokens (#27224)

This commit is contained in:
Dongbo Wang
2026-04-09 10:00:54 -07:00
committed by GitHub
parent 38dae92b0e
commit 147da846d0
3 changed files with 9 additions and 0 deletions
@@ -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 }}
+3
View File
@@ -14,6 +14,9 @@ on:
required: false
default: testResults-xunit
permissions:
contents: read
jobs:
xunit:
name: Run xUnit Tests