Skip to content

Commit 48b5c30

Browse files
authored
Merge pull request #3807 from amvanbaren/workflow-permissions
Test sonar workflow with permissions
2 parents db61c03 + 874d98e commit 48b5c30

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
pr:
1010
name: Save PR Info
11+
permissions:
12+
contents: none
1113
runs-on: ubuntu-latest
1214
steps:
1315
- name: Save PR number to file

.github/workflows/smoketest.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
- production
66
jobs:
77
test:
8+
permissions:
9+
contents: none
810
timeout-minutes: 60
911
runs-on: ubuntu-latest
1012
steps:

.github/workflows/sonar.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
jobs:
77
sonar:
88
name: Sonar
9+
permissions:
10+
pull-requests: read
911
runs-on: ubuntu-latest
1012
if: github.event.workflow_run.conclusion == 'success'
1113
steps:

0 commit comments

Comments
 (0)