Skip to content

Commit 5de26c6

Browse files
authored
Merge pull request #34 from bastelfreak/windows
CI: Set explicit token permissions
2 parents 35893a8 + c34f2b7 commit 5de26c6

File tree

11 files changed

+34
-0
lines changed

11 files changed

+34
-0
lines changed

.github/workflows/apply.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
- rakelib/tests.rake
1515
- spec/**
1616

17+
permissions:
18+
contents: read
19+
1720
env:
1821
BOLT_WINRM_USER: roddypiper
1922
BOLT_WINRM_HOST: localhost

.github/workflows/bolt_spec.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on:
1515
- rakelib/tests.rake
1616
- spec/**
1717

18+
permissions:
19+
contents: read
20+
1821
env:
1922
BOLT_WINRM_USER: roddypiper
2023
BOLT_WINRM_HOST: localhost

.github/workflows/docker_transport.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
- rakelib/tests.rake
1515
- spec/**
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
docker_transport:
1922
name: Docker Transport

.github/workflows/linux.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
- rakelib/tests.rake
1515
- spec/**
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
integration:
1922
name: Integration

.github/workflows/modules.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
- modules/**
1515
- rakelib/tests.rake
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
linux:
1922
name: Linux

.github/workflows/publish-powershell-module.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
required: true
99
default: main
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
publish_module:
1316
name: Publish

.github/workflows/pwsh.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
- lib/bolt/bolt_option_parser.rb
1010
- rakelib/pwsh.rake
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316

1417
test:

.github/workflows/schemas.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- rakelib/schemas.rake
1111
- schemas/*.json
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417

1518
generate:

.github/workflows/ssh_transport.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
- rakelib/tests.rake
1515
- spec/**
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
ssh_transport:
1922
name: SSH Transport

.github/workflows/windows.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Windows
23

34
on:
@@ -21,6 +22,9 @@ env:
2122
BOLT_WINRM_SSL_PORT: 5986
2223
BOLT_WINRM_SMB_PORT: 445
2324

25+
permissions:
26+
contents: read
27+
2428
jobs:
2529
integration:
2630
name: Integration

0 commit comments

Comments
 (0)