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

github.com/nextcloud/tasks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneilnaveen <42328488+neilnaveen@users.noreply.github.com>2022-05-12 22:04:04 +0300
committerGitHub <noreply@github.com>2022-05-12 22:04:04 +0300
commit6bb83ec7c31ccf7cdc08f87b2f802e9b7ac3a78c (patch)
tree29b46f18cb2e742b7ee439d9bea85a6573d3df8d
parent00dc26d40aec882196a3cf56bd065d6000532e1f (diff)
Set permissions for GitHub actions (#1965)
- 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/) 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. Signed-off-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com>
-rw-r--r--.github/workflows/lint.yml3
-rw-r--r--.github/workflows/node-test.yml3
-rw-r--r--.github/workflows/phpunit.yml3
3 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index c8dbf9f5..bcec5393 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -7,6 +7,9 @@ on:
- master
- stable*
+permissions:
+ contents: read
+
jobs:
php:
runs-on: ubuntu-latest
diff --git a/.github/workflows/node-test.yml b/.github/workflows/node-test.yml
index 0302a538..7c05ff4f 100644
--- a/.github/workflows/node-test.yml
+++ b/.github/workflows/node-test.yml
@@ -7,6 +7,9 @@ on:
- master
- stable*
+permissions:
+ contents: read
+
jobs:
test:
runs-on: ubuntu-latest
diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml
index 519186a1..aefe7544 100644
--- a/.github/workflows/phpunit.yml
+++ b/.github/workflows/phpunit.yml
@@ -6,6 +6,9 @@ on:
branches:
- master
+permissions:
+ contents: read
+
jobs:
unit-tests:
runs-on: ubuntu-latest