Skip to content

Commit 17241ec

Browse files
authored
Merge pull request #1536 from microsoft/feature/wf-permissions
- adds permissions to workflows
2 parents 196ed74 + aa97082 commit 17241ec

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/ci-cd.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: CI/CD Pipeline
22

33
on: [push, pull_request, workflow_dispatch]
44

5+
permissions:
6+
contents: write
7+
58
jobs:
69
ci:
710
name: Continuous Integration

.github/workflows/sonarcloud.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ on:
99
types: [opened, synchronize, reopened]
1010
paths-ignore: ['.vscode/**']
1111

12+
13+
permissions:
14+
contents: read
15+
pull-requests: read
16+
1217
env:
1318
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
1419

0 commit comments

Comments
 (0)