CI: define read-only permission for GitHub Workflow (#1175)

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-04 02:33:51 -03:00
committed by GitHub
parent bdc5582b35
commit d7f672d141

View File

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