[StepSecurity] ci: Harden GitHub Actions (#171)
This commit is contained in:
Родитель
237ed0048a
Коммит
7d6ec8875c
|
@ -21,13 +21,18 @@ on:
|
|||
schedule:
|
||||
- cron: '19 19 * * 0'
|
||||
|
||||
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:
|
||||
|
|
|
@ -19,6 +19,9 @@ on:
|
|||
- build/*.ps1
|
||||
- build/*.yml
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
|
|
@ -23,6 +23,9 @@ env:
|
|||
DIRECTXMESH_MEDIA_PATH: ${{ github.workspace }}/Media
|
||||
DIRECTXTEX_MEDIA_PATH: ${{ github.workspace }}/Media
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
|
|
@ -15,6 +15,9 @@ on:
|
|||
- LICENSE
|
||||
- build/*
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
|
Загрузка…
Ссылка в новой задаче