diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml index 1070b9e3f1..f1be2c9de5 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/ci-workflow.yml @@ -9,6 +9,9 @@ on: # Allows manual run of workflow workflow_dispatch: +permissions: + contents: read + jobs: build: runs-on: ubuntu-20.04 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c68e46167d..83cf2c36b4 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -9,8 +9,15 @@ on: schedule: - cron: '0 19 * * 3' +permissions: + contents: read + jobs: analyze: + permissions: + 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 name: Analyze runs-on: ubuntu-latest diff --git a/.github/workflows/desktop-release.yml b/.github/workflows/desktop-release.yml index 24e20d16b9..c14f002ca5 100644 --- a/.github/workflows/desktop-release.yml +++ b/.github/workflows/desktop-release.yml @@ -4,6 +4,9 @@ on: - cron: "0 0 * * 0" workflow_dispatch: +permissions: + contents: read + jobs: test: runs-on: macos-11 diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml index 8e4d350c01..ec206db0d1 100644 --- a/.github/workflows/npm-release.yml +++ b/.github/workflows/npm-release.yml @@ -2,6 +2,9 @@ name: Release packages on: push: branches: [ main ] +permissions: + contents: read + jobs: test: runs-on: ubuntu-latest