ci: Security hardening for GitHub Actions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

The idea is that the software supply chain relies on 3rd party actions
that could be compromised. Mitigate this risk by giving these actions
minimal rights to the repository. Here read-only access is good enough.
This commit is contained in:
Dimitri Papadopoulos
2022-10-07 22:42:50 +02:00
parent b8c85f0dfd
commit 5dbc4e0a42

View File

@@ -8,6 +8,9 @@ on: # yamllint disable-line rule:truthy
branches: branches:
- master - master
permissions:
contents: read
jobs: jobs:
lint: lint:
name: Linters name: Linters