Skip to content

Commit 552ee7a

Browse files
author
Leah Restad
committed
permissions
1 parent daab3e5 commit 552ee7a

5 files changed

Lines changed: 18 additions & 7 deletions

File tree

.github/workflows/check-license-headers.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
branches: [main]
1010
workflow_dispatch:
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
check-license:
1417
runs-on: ubuntu-latest

.github/workflows/test-dotnet.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
- ".github/workflows/test-dotnet.yml"
1313
workflow_dispatch:
1414

15+
permissions:
16+
contents: read
17+
1518
jobs:
1619
test:
1720
runs-on: windows-latest

.github/workflows/test-nodejs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) Microsoft Corporation.
22
# Licensed under the MIT License.
33

4-
name: Run NodeJS Tests
4+
name: Run Node.js Tests
55

66
on:
77
pull_request:
@@ -12,6 +12,9 @@ on:
1212
- ".github/workflows/test-nodejs.yml"
1313
workflow_dispatch:
1414

15+
permissions:
16+
contents: read
17+
1518
jobs:
1619
test:
1720
runs-on: ubuntu-latest

.github/workflows/update-domains.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,17 @@ name: Verify Azure Service Domains
55

66
on:
77
pull_request:
8+
branches:
9+
- main
810
paths:
911
- 'config/Domains.json'
1012
- 'nodejs/src/Helpers/Domains.ts'
1113
- 'dotnet/src/Helpers/Domains.cs'
12-
push:
13-
branches: [main]
14-
paths:
15-
- 'config/Domains.json'
16-
- 'nodejs/src/Helpers/Domains.ts'
17-
- 'dotnet/src/Helpers/Domains.cs'
1814
workflow_dispatch: # Allow manual triggering
1915

16+
permissions:
17+
contents: read
18+
2019
jobs:
2120
verify-domains:
2221
runs-on: ubuntu-latest

.github/workflows/update-ip-ranges.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
- 'dotnet/src/IPAddressRanges.cs'
1414
workflow_dispatch: # Allow manual triggering
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
verify-ranges:
1821
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)