Skip to content

Commit fe627dd

Browse files
committed
chore: GH workflow permissions
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 3726257 commit fe627dd

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on: [pull_request, workflow_dispatch]
66
env:
77
SNAPSHOOTER_STRICT_MODE: true
88

9+
# see https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
10+
permissions: {}
11+
912
jobs:
1013
# Fail if there are build warnings
1114
#

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,14 @@ on:
2525
env:
2626
SNAPSHOOTER_STRICT_MODE: true
2727

28+
# see https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
29+
permissions: {}
30+
2831
jobs:
2932
release:
3033
name: Release
34+
permissions:
35+
contents: write # for git-push and creating a GH release and uploading release assets
3136
runs-on: ubuntu-24.04
3237
timeout-minutes: 30
3338
outputs:
@@ -173,7 +178,8 @@ jobs:
173178
release-osx-arm64:
174179
name: Release osx-arm64
175180
needs: release
176-
runs-on: macos-latest
181+
permissions:
182+
contents: write # for uploading release assets
177183
timeout-minutes: 30
178184
steps:
179185
- uses: actions/[email protected]

0 commit comments

Comments
 (0)