diff --git a/.github/workflows/build-preview.yml b/.github/workflows/build-preview.yml index e77ed87fb2..bfe848aac7 100644 --- a/.github/workflows/build-preview.yml +++ b/.github/workflows/build-preview.yml @@ -5,6 +5,9 @@ on: branches: - main +permissions: + contents: read + jobs: build-preview: runs-on: ubuntu-latest diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ed22bb7298..de77dfee9a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,6 +5,9 @@ on: branches: - main +permissions: + contents: read + jobs: publish-npm: runs-on: ubuntu-latest diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index 520e42e574..3b1cf54b4e 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -10,8 +10,15 @@ on: schedule: - cron: '0 0 * * 0' # At 00:00 on Sunday +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 results runs-on: ubuntu-latest steps: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 76bb17a049..6b1da8e2af 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,6 +11,9 @@ on: env: CI: true +permissions: + contents: read + jobs: pretest: name: Pre-Test