Set minimal permissions to Github Workflows (#3972)

This commit is contained in:
Joyce
2023-03-13 08:14:35 -03:00
committed by GitHub
parent bbe337c3a3
commit 546370c9e7
7 changed files with 26 additions and 0 deletions

View File

@@ -10,6 +10,9 @@ on:
schedule:
- cron: '0 19 * * 1'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
@@ -19,6 +22,8 @@ jobs:
CodeQL-Build:
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: Checkout repository