Skip to content

Commit d2cc279

Browse files
Copilotnpv2k1
andcommitted
Add explicit GITHUB_TOKEN permissions to Docker workflow for security
Co-authored-by: npv2k1 <[email protected]>
1 parent f6e1673 commit d2cc279

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/docker.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ on:
66
pull_request:
77
branches: [ "main" ]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
docker-build:
1114
name: Docker Build Test
1215
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
1318
steps:
1419
- uses: actions/checkout@v4
1520

@@ -33,6 +38,8 @@ jobs:
3338
docker-compose:
3439
name: Docker Compose Validation
3540
runs-on: ubuntu-latest
41+
permissions:
42+
contents: read
3643
steps:
3744
- uses: actions/checkout@v4
3845

0 commit comments

Comments
 (0)