Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornathannaveen <42319948+nathannaveen@users.noreply.github.com>2022-06-09 04:05:21 +0300
committerWilliam Desportes <williamdes@wdes.fr>2022-06-11 15:23:47 +0300
commit995f6887b4e694daf20d6247ea1125806fda50e0 (patch)
tree6c32f574604742aff6f66970ea94c69ea4a9649b /.github/workflows
parent289e0dd1810f3181f888154e440df1294ddfc58f (diff)
Set permissions for GitHub actions
Pull-request: #17591 Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much. - Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs [Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/) Signed-off-by: nathan naveen <42319948+nathannaveen@users.noreply.github.com>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/lint-and-analyse-php.yml3
-rw-r--r--.github/workflows/lint-docs.yml3
-rw-r--r--.github/workflows/lock.yml5
-rw-r--r--.github/workflows/mutation-tests.yml3
-rw-r--r--.github/workflows/other-tools.yml3
-rw-r--r--.github/workflows/test-selenium.yml3
-rw-r--r--.github/workflows/tests.yml3
-rw-r--r--.github/workflows/update-po.yml5
8 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/lint-and-analyse-php.yml b/.github/workflows/lint-and-analyse-php.yml
index 6506101d08..a43b539a94 100644
--- a/.github/workflows/lint-and-analyse-php.yml
+++ b/.github/workflows/lint-and-analyse-php.yml
@@ -8,6 +8,9 @@ on:
- master
- QA_**
+permissions:
+ contents: read
+
jobs:
lint-node:
runs-on: ubuntu-latest
diff --git a/.github/workflows/lint-docs.yml b/.github/workflows/lint-docs.yml
index 433eb9b3d1..989a0ec79b 100644
--- a/.github/workflows/lint-docs.yml
+++ b/.github/workflows/lint-docs.yml
@@ -8,6 +8,9 @@ on:
- master
- QA_**
+permissions:
+ contents: read
+
jobs:
lint-docs:
runs-on: ubuntu-latest
diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml
index cf13839196..b4ec30d4d7 100644
--- a/.github/workflows/lock.yml
+++ b/.github/workflows/lock.yml
@@ -4,8 +4,13 @@ on:
schedule:
- cron: '0 0 * * *'
+permissions:
+ contents: read
+
jobs:
lock:
+ permissions:
+ issues: write # for dessant/lock-threads to lock issues
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
diff --git a/.github/workflows/mutation-tests.yml b/.github/workflows/mutation-tests.yml
index 49d6931f06..17d0da682d 100644
--- a/.github/workflows/mutation-tests.yml
+++ b/.github/workflows/mutation-tests.yml
@@ -6,6 +6,9 @@ on:
pull_request:
branches: [master]
+permissions:
+ contents: read
+
jobs:
tests:
name: Mutation tests with PHP ${{ matrix.php-version }}
diff --git a/.github/workflows/other-tools.yml b/.github/workflows/other-tools.yml
index d83c38803c..493fd35990 100644
--- a/.github/workflows/other-tools.yml
+++ b/.github/workflows/other-tools.yml
@@ -8,6 +8,9 @@ on:
- master
- QA_**
+permissions:
+ contents: read
+
jobs:
build-documentation:
runs-on: ubuntu-latest
diff --git a/.github/workflows/test-selenium.yml b/.github/workflows/test-selenium.yml
index f0c99ddc12..ec53b175c0 100644
--- a/.github/workflows/test-selenium.yml
+++ b/.github/workflows/test-selenium.yml
@@ -8,6 +8,9 @@ on:
- master
- QA_**
+permissions:
+ contents: read
+
jobs:
test-selenium:
name: Selenium tests on PHP ${{ matrix.php-version }} and ${{ matrix.os }}
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 51d950fd8d..f49d9549a7 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -8,6 +8,9 @@ on:
- master
- QA_**
+permissions:
+ contents: read
+
jobs:
multi-arch-tests-php:
name: Test on PHP ${{ matrix.php-version }} (${{ matrix.arch }})
diff --git a/.github/workflows/update-po.yml b/.github/workflows/update-po.yml
index ac07c2592c..a505e41e01 100644
--- a/.github/workflows/update-po.yml
+++ b/.github/workflows/update-po.yml
@@ -5,8 +5,13 @@ on:
schedule:
- cron: '0 0 * * 0'
+permissions:
+ contents: read
+
jobs:
update-po:
+ permissions:
+ contents: write # for Git to git push
name: Update po files
runs-on: ubuntu-latest
# Source: https://github.community/t/do-not-run-cron-workflows-in-forks/17636/2?u=williamdes