A platform for community discussion. Free, open, simple.
DEV: Set permissions for GitHub actions (#17733)
Jarek Radosz89d43235c46a
diff --git a/.github/workflows/licenses.yml b/.github/workflows/licenses.ymlindex 970ed87a2a8..755852add28 100644--- a/.github/workflows/licenses.yml+++ b/.github/workflows/licenses.yml@@ -10,6 +10,9 @@ concurrency:group: licenses-${{ format('{0}-{1}', github.head_ref || github.run_number, github.job) }}cancel-in-progress: true+permissions:+ contents: read+jobs:build:name: rundiff --git a/.github/workflows/linting.yml b/.github/workflows/linting.ymlindex 08c147b29a7..3ce7b5d5f30 100644--- a/.github/workflows/linting.yml+++ b/.github/workflows/linting.yml@@ -10,6 +10,9 @@ concurrency:group: linting-${{ format('{0}-{1}', github.head_ref || github.run_number, github.job) }}cancel-in-progress: true+permissions:+ contents: read+jobs:build:name: rundiff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex dd5d31ff0e5..a2c9f200b8f 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -12,6 +12,9 @@ concurrency:group: tests-${{ format('{0}-{1}', github.head_ref || github.run_number, github.job) }}cancel-in-progress: true+permissions:+ contents: read+jobs:build:name: ${{ matrix.target }} ${{ matrix.build_type }}