diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 0d17ff80..6b1cf853 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -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: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 424287bf..55b4c8d9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,6 +19,9 @@ on: - build/*.ps1 - build/*.yml +permissions: + contents: read + jobs: build: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9c8a19e1..1eb8fca3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 }} diff --git a/.github/workflows/vcpkg.yml b/.github/workflows/vcpkg.yml index 0e6ecbd0..ee171ec8 100644 --- a/.github/workflows/vcpkg.yml +++ b/.github/workflows/vcpkg.yml @@ -15,6 +15,9 @@ on: - LICENSE - build/* +permissions: + contents: read + jobs: build: runs-on: ${{ matrix.os }}