1
0
mirror of https://github.com/microsoft/DirectXMath synced 2024-11-21 20:00:12 +00:00

[StepSecurity] ci: Harden GitHub Actions (#201)

This commit is contained in:
StepSecurity Bot 2024-09-10 19:04:05 -07:00 committed by GitHub
parent 36850d14da
commit df49cb21f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 1 deletions

View File

@ -19,13 +19,18 @@ on:
schedule:
- cron: '34 18 * * 6'
permissions:
contents: read
jobs:
analyze:
name: Analyze (C/C++)
runs-on: windows-latest
timeout-minutes: 360
permissions:
security-events: write
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/autobuild to send a status report
packages: read
steps:

View File

@ -17,6 +17,9 @@ on:
- build/*.ps1
- build/*.yml
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}

View File

@ -17,6 +17,9 @@ on:
- build/*.ps1
- build/*.yml
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}