Apply CI permissions

This commit is contained in:
Archi
2023-11-19 19:33:42 +01:00
parent 4f459e21f2
commit f4f73bcadc
8 changed files with 29 additions and 10 deletions

View File

@@ -6,17 +6,17 @@ env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
permissions:
checks: write
contents: write
pull-requests: write
security-events: write
jobs:
main:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
permissions:
checks: write
contents: write
pull-requests: write
security-events: write
steps:
- name: Checkout code
if: github.event_name != 'pull_request'