Harden GitHub Workflows security (#8664)

This commit is contained in:
Alex
2022-12-03 17:47:30 +02:00
committed by GitHub
parent db2c0d4c91
commit e2cea6121a
4 changed files with 11 additions and 0 deletions

View File

@@ -5,6 +5,8 @@ on:
- master
pull_request_target:
permissions: {}
jobs:
openapi-head:
name: OpenAPI - HEAD
@@ -55,6 +57,9 @@ jobs:
path: tests/Jellyfin.Server.Integration.Tests/bin/Release/net6.0/openapi.json
openapi-diff:
permissions:
pull-requests: write # to create or update comment (peter-evans/create-or-update-comment)
name: OpenAPI - Difference
if: ${{ github.event_name == 'pull_request_target' }}
runs-on: ubuntu-latest