Set GITHUB_TOKEN permissions to read only in OpenAPI workflow

This commit is contained in:
Niels van Velzen 2021-11-05 22:43:09 +01:00
parent 2491dd513c
commit 07b9ba2bb4

View File

@ -9,6 +9,7 @@ jobs:
openapi-head: openapi-head:
name: OpenAPI - HEAD name: OpenAPI - HEAD
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: read-all
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -34,6 +35,7 @@ jobs:
name: OpenAPI - BASE name: OpenAPI - BASE
if: ${{ github.base_ref != '' }} if: ${{ github.base_ref != '' }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: read-all
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2