build: Add top-level read-only permissions to ci actions

This is recommended by ossf scorecard:
https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

Change-Id: I48a36cc6625fa3f1e6babb9edbe81c9522f41a13
Signed-off-by: Greg Tucker <greg.b.tucker@intel.com>
This commit is contained in:
Greg Tucker 2022-10-28 17:05:01 -07:00
parent 1187583a97
commit fec429e1b9

View File

@ -8,6 +8,9 @@ on:
tags: tags:
- "*" - "*"
permissions:
contents: read
jobs: jobs:
check_format: check_format:
runs-on: ubuntu-latest runs-on: ubuntu-latest