summaryrefslogtreecommitdiff
path: root/.github/workflows/msys2.yml
diff options
context:
space:
mode:
authorneilnaveen <42328488+neilnaveen@users.noreply.github.com>2022-06-25 01:08:13 +0000
committerDylan Baker <dylan@pnwbakers.com>2022-06-24 23:46:38 -0700
commit5f8b0487abf501a09c51387791b578a148c973e2 (patch)
tree3104f200e004da60ff11af757e26295145acf55a /.github/workflows/msys2.yml
parent650cea3d08693b83892b1d63b947b7c760cdf639 (diff)
downloadmeson-5f8b0487abf501a09c51387791b578a148c973e2.tar.gz
chore: Set permissions for GitHub actions
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: neilnaveen <42328488+neilnaveen@users.noreply.github.com>
Diffstat (limited to '.github/workflows/msys2.yml')
-rw-r--r--.github/workflows/msys2.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.github/workflows/msys2.yml b/.github/workflows/msys2.yml
index b49cd70a1..2e09abae7 100644
--- a/.github/workflows/msys2.yml
+++ b/.github/workflows/msys2.yml
@@ -20,6 +20,9 @@ on:
- ".github/workflows/msys2.yml"
- "run_unittests.py"
+permissions:
+ contents: read
+
jobs:
test:
runs-on: windows-2019