Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
ci: Limit GitHub token permissions for workflows.
Varun Sharma6cdf2853ff92
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.ymlindex 26eb1ad3de6..3d22b2d0e5e 100644--- a/.github/workflows/codeql-analysis.yml+++ b/.github/workflows/codeql-analysis.yml@@ -12,8 +12,15 @@ concurrency:group: "${{ github.workflow }}-${{ github.head_ref || github.run_id }}"cancel-in-progress: true+permissions:+ contents: read+jobs:CodeQL:+ 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/analyze to upload SARIF resultsif: ${{!github.event.repository.private}}runs-on: ubuntu-latestdiff --git a/.github/workflows/production-suite.yml b/.github/workflows/production-suite.ymlindex afdadb860a4..0358ac04f17 100644--- a/.github/workflows/production-suite.yml+++ b/.github/workflows/production-suite.yml@@ -33,6 +33,9 @@ defaults:run:shell: bash+permissions:+ contents: read+jobs:production_build:# This job builds a release tarball from the current commit, whichdiff --git a/.github/workflows/update-oneclick-apps.yml b/.github/workflows/update-oneclick-apps.ymlindex ad34a2fa0ee..4d39e36f2cc 100644--- a/.github/workflows/update-oneclick-apps.yml+++ b/.github/workflows/update-oneclick-apps.yml@@ -2,6 +2,9 @@ name: Update one click appson:release:types: [published]+permissions:+ contents: read+jobs:update-digitalocean-oneclick-app:runs-on: ubuntu-latestdiff --git a/.github/workflows/zulip-ci.yml b/.github/workflows/zulip-ci.ymlindex fe3c24aa132..fcc0d1b2951 100644--- a/.github/workflows/zulip-ci.yml+++ b/.github/workflows/zulip-ci.yml@@ -19,6 +19,9 @@ defaults:run:shell: bash+permissions:+ contents: read+jobs:tests:strategy: