Skip to content

Commit ae163ad

Browse files
committed
gha: set "read" permissions as default
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent b871f76 commit ae163ad

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
name: build
22

3+
# Default to 'contents: read', which grants actions to read commits.
4+
#
5+
# If any permission is set, any permission not included in the list is
6+
# implicitly set to "none".
7+
#
8+
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
9+
permissions:
10+
contents: read
11+
312
concurrency:
413
group: ${{ github.workflow }}-${{ github.ref }}
514
cancel-in-progress: true
@@ -136,6 +145,9 @@ jobs:
136145

137146
build:
138147
runs-on: ubuntu-24.04
148+
permissions:
149+
# required to create GitHub release
150+
contents: write
139151
steps:
140152
-
141153
name: Checkout

0 commit comments

Comments
 (0)