ci(github): add explicit permissions to workflows (#1788)

This commit is contained in:
Oleg Shparber
2026-03-29 03:14:15 +03:00
committed by GitHub
parent e5fc23aaa6
commit bb165bfbc7
3 changed files with 10 additions and 3 deletions
+4 -3
View File
@@ -9,6 +9,10 @@ on:
schedule:
- cron: '0 8 * * 6'
permissions:
contents: read
security-events: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
@@ -18,9 +22,6 @@ jobs:
name: Analyze
runs-on: ubuntu-24.04
permissions:
security-events: write
steps:
- name: Checkout Repository
uses: actions/checkout@v6
+3
View File
@@ -4,6 +4,9 @@ on:
push:
branches: [main]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
+3
View File
@@ -6,6 +6,9 @@ on:
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true