Skip to content

Commit 27f79e7

Browse files
committed
ci: declare workflow-level contents: read on ci and validate
Both workflows just run Go test and lint validation. No GitHub API writes from the workflows. Post-CVE-2025-30066 hardening pattern. yaml.safe_load validated. Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
1 parent 12ce349 commit 27f79e7

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)