CI: define read-only permission for GitHub Workflow

It secures the repo against erroneous or malicious actions from external jobs you call from your workflow. It's specially important for the case they get compromised, for example.
This commit is contained in:
Diogo Teles Sant'Anna 2023-03-02 12:25:43 -03:00 committed by GitHub
parent bdc5582b35
commit 8ba7d280a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,7 @@ on:
pull_request:
branches: [ master ]
workflow_dispatch:
permissions: read-all
jobs:
cmake-build:
strategy: