summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authornathannaveen <42319948+nathannaveen@users.noreply.github.com>2022-05-24 14:07:23 -0500
committerAlexandre FLAMENT <alexandre.flament@hesge.ch>2022-11-04 16:50:43 +0000
commitb5ce39b5368f755329c3b0c4daa4245247deaa73 (patch)
treec37cbaa255a391cd93e457b47591e9e07e389d94 /.github
parent7101c5ecf2bcdc17b9050512c83c57cf721a451d (diff)
chore: Set permissions for GitHub actions (#3225)
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: nathannaveen <42319948+nathannaveen@users.noreply.github.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/integration.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
index 1b3085a5..b66b5f86 100644
--- a/.github/workflows/integration.yml
+++ b/.github/workflows/integration.yml
@@ -6,6 +6,9 @@ on:
pull_request:
branches: ["master"]
+permissions:
+ contents: read
+
jobs:
python:
name: Python ${{ matrix.python-version }}
@@ -81,6 +84,8 @@ jobs:
documentation:
name: Documentation
runs-on: ubuntu-20.04
+ permissions:
+ contents: write # for JamesIves/github-pages-deploy-action to push changes in repo
steps:
- name: Checkout
uses: actions/checkout@v2
@@ -125,6 +130,8 @@ jobs:
- python
- themes
- documentation
+ permissions:
+ contents: write # for make V=1 weblate.push.translations
steps:
- name: Checkout
uses: actions/checkout@v2