Skip to content

Commit cd00abf

Browse files
authored
ci: use strict GITHUB_TOKEN permissions (#6)
1 parent 18bb277 commit cd00abf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
schedule:
99
- cron: "46 2 * * 1"
1010

11+
permissions:
12+
contents: read
13+
1114
env:
1215
REGISTRY: "docker.io"
1316
DOCKERHUB_ORG: "ohmyzsh"
@@ -65,7 +68,7 @@ jobs:
6568
echo "tags=$tags" >> $GITHUB_OUTPUT
6669
- name: Build and push images
6770
id: push
68-
uses: docker/build-push-action@v5
71+
uses: docker/build-push-action@v6
6972
with:
7073
context: ohmyzsh
7174
platforms: linux/amd64,linux/arm64
@@ -146,7 +149,7 @@ jobs:
146149
echo "tags=$tags" >> $GITHUB_OUTPUT
147150
- name: Build and push images
148151
id: push
149-
uses: docker/build-push-action@v5
152+
uses: docker/build-push-action@v6
150153
with:
151154
context: zsh
152155
platforms: linux/amd64,linux/arm64

0 commit comments

Comments
 (0)