Restrict job permissions in GitHub actions workflows

Restrict the GitHub token permissions only to the required ones, i.e.
just read-only access to the code.

This is done in order to reduce the potential harm in case of a
malicious pull request, see GitHub blog post at
https://securitylab.github.com/research/github-actions-preventing-pwn-requests/

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>

Closes #22574.
This commit is contained in:
naveen 2022-06-27 00:33:51 +00:00 committed by Vadim Zeitlin
parent d5ed77da53
commit 64add326f6
7 changed files with 21 additions and 0 deletions

View file

@ -45,6 +45,9 @@ on:
- '*.yml'
- 'wxwidgets.props'
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.runner }}