diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a98d7e032..54bc2afb6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,9 @@ env: LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 +permissions: + contents: read # to fetch code (actions/checkout) + jobs: linux: name: Linux (python=${{ matrix.pyver }} cc=${{ matrix.cc }} sanitize=${{ matrix.sanitize }}) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 7442be92b..14732684d 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -9,9 +9,16 @@ on: schedule: - cron: '0 22 * * 5' +permissions: + contents: read # to fetch code (actions/checkout) + jobs: CodeQL-Build: + permissions: + contents: read # to fetch code (actions/checkout) + security-events: write # to upload SARIF results (github/codeql-action/analyze) + runs-on: ubuntu-latest steps: