mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
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:

committed by
GitHub

parent
bdc5582b35
commit
d7f672d141
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@@ -5,6 +5,7 @@ on:
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
workflow_dispatch:
|
||||
permissions: read-all
|
||||
jobs:
|
||||
cmake-build:
|
||||
strategy:
|
||||
|
Reference in New Issue
Block a user