Skip to content

Commit beb8e4c

Browse files
authored
Add permissions to GitHub Action workflows (#192)
1 parent 9b64d6d commit beb8e4c

File tree

6 files changed

+14
-0
lines changed

6 files changed

+14
-0
lines changed

.github/workflows/check_homepage_build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Check homepage build
2+
permissions:
3+
contents: read
24

35
on:
46
pull_request:

.github/workflows/deploy_homepage.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: Deploy homepage
2+
permissions:
3+
contents: write
4+
25
on:
36
push:
47
branches:

.github/workflows/publish_crates_io.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Release
2+
permissions:
3+
contents: read
24

35
on:
46
push:

.github/workflows/push_docker.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: Push Docker image
2+
permissions:
3+
contents: read
4+
actions: write
25

36
on:
47
push:

.github/workflows/zeus_fmt_lint_test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: (Zeus) Check format, lint, and test
2+
permissions:
3+
contents: read
24

35
on:
46
pull_request:

.github/workflows/zeusd_fmt_lint_test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: (Zeusd) Check format, lint, and test
2+
permissions:
3+
contents: read
24

35
on:
46
pull_request:

0 commit comments

Comments
 (0)