Skip to content

Commit 09e875d

Browse files
authored
Fix CI workflow permissions (#109)
1 parent 1c27c9c commit 09e875d

File tree

5 files changed

+16
-1
lines changed

5 files changed

+16
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@ concurrency:
1717
group: ${{ github.ref_name }}-ci
1818
cancel-in-progress: true
1919

20+
permissions:
21+
contents: read
22+
2023
jobs:
2124
build:
2225
name: Build Image
2326
runs-on: ubuntu-22.04
2427
permissions:
25-
contents: read # for docker/build-push-action to read repo content
28+
contents: write # for lucacome/draft-release to create a draft release
2629
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
2730
packages: write # for docker/build-push-action to push to GHCR
2831
steps:

.github/workflows/dockerhub-description.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ concurrency:
1111
group: ${{ github.ref_name }}-dockerhub-description
1212
cancel-in-progress: true
1313

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

.github/workflows/labeler.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: "Pull Request Labeler"
22
on:
33
- pull_request_target
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
triage:
710
permissions:

.github/workflows/notifications.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
types:
1010
- completed
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
on-failure:
1417
runs-on: ubuntu-22.04

.github/workflows/stale.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
schedule:
44
- cron: '30 1 * * *'
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
stale:
811
permissions:

0 commit comments

Comments
 (0)