diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 6684071e0..baf888f33 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -6,6 +6,9 @@ on: pull_request: branches: ['main'] +permissions: + contents: read + # Cancel in-progress runs when a new commit is pushed concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c1e8bdeef..377464de9 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,6 +6,9 @@ on: pull_request: branches: ['main'] +permissions: + contents: read + # Cancel in-progress runs when a new commit is pushed concurrency: group: ${{ github.workflow }}-${{ github.ref }}