Skip to content

Commit 6588003

Browse files
authored
Merge pull request #3235 from arpitjain099/chore/declare-workflow-perms
ci: declare workflow-level `contents: read` on ci and validate
2 parents 20a8f46 + 27f79e7 commit 6588003

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ env:
1111
DOCKER_SWARMKIT_USE_CONTAINER: 1
1212
IMAGE_NAME: moby/swarmkit
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
build-dev:
1619
runs-on: ubuntu-22.04

.github/workflows/validate.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on:
1515
env:
1616
DOCKER_SWARMKIT_USE_CONTAINER: 1
1717

18+
permissions:
19+
contents: read
20+
1821
jobs:
1922
validate:
2023
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)