Apache Lucene open-source search software
GitHub Workflows security hardening (#11789)
Alex26d6063ec3b7
diff --git a/.github/workflows/distribution.yml b/.github/workflows/distribution.ymlindex 2b0821cc844..efd169372cb 100644--- a/.github/workflows/distribution.yml+++ b/.github/workflows/distribution.yml@@ -12,6 +12,9 @@ on:branches:- 'main'+permissions:+ contents: read # to fetch code (actions/checkout)+jobs:test:name: Run distribution testsdiff --git a/.github/workflows/gradle-precommit.yml b/.github/workflows/gradle-precommit.ymlindex ecafe945e09..9ca594671d7 100644--- a/.github/workflows/gradle-precommit.yml+++ b/.github/workflows/gradle-precommit.yml@@ -10,6 +10,9 @@ on:- main- branch_9x+permissions:+ contents: read # to fetch code (actions/checkout)+jobs:# This runs all validation checks without tests.checks: