Skip to content

Commit 67c6e43

Browse files
Add required permissions to workflows
- Add permissions block to all workflows - Set minimal required permissions (contents: read) - Add pull-requests: write for PR validation - Fix CodeQL security warnings
1 parent 339b7eb commit 67c6e43

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/pr-validation.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: PR Validation
22

3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
37
on:
48
pull_request:
59
types: [opened, synchronize, reopened]

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: Release
22

3+
permissions:
4+
contents: write
5+
id-token: write
6+
37
on:
48
push:
59
tags:
610
- 'v*'
711
workflow_dispatch:
812

9-
permissions:
10-
contents: write
11-
id-token: write
12-
1313
jobs:
1414
build-and-publish:
1515
runs-on: ubuntu-latest

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Tests
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
branches: [ main, develop ]

0 commit comments

Comments
 (0)