Potential fix for code scanning alert no. 2: Workflow does not contain permissions (#46079)

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
Billy O'Neal 2025-06-18 16:42:36 -07:00 committed by GitHub
parent 27b8546869
commit 4a1e8320e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 23 deletions

View File

@ -1,23 +0,0 @@
name: Test Modified Ports
on:
push:
branches:
- onboard-actions
jobs:
Windows:
runs-on:
- self-hosted
- "1ES.Pool=vcpkg-windows-wus"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# fetch-depth 50 tries to ensure we capture the whole history of the branch
fetch-depth: 50
- name: Bootstrap
run: ./bootstrap-vcpkg.sh
- name: Example
shell: pwsh
run: Write-Host 'Running on 1ES Hosted GitHub Runners'

View File

@ -1,5 +1,8 @@
name: Check For Common Mistakes
permissions:
contents: read
on:
pull_request: