Skip to content

Commit 9a2c2f7

Browse files
committed
Fix security concerns
1 parent 30c03be commit 9a2c2f7

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/auto-version-and-publish.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,15 @@ on:
2626
default: false
2727
type: boolean
2828

29+
permissions:
30+
contents: read
31+
2932
jobs:
3033
# Detect changes
3134
changes:
3235
runs-on: ubuntu-latest
36+
permissions:
37+
contents: read
3338
outputs:
3439
cli: ${{ steps.filter.outputs.cli }}
3540
sdk: ${{ steps.filter.outputs.sdk }}
@@ -38,7 +43,7 @@ jobs:
3843
with:
3944
fetch-depth: 0
4045

41-
- uses: dorny/paths-filter@v3
46+
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v3.0.1
4247
id: filter
4348
with:
4449
filters: |
@@ -54,6 +59,8 @@ jobs:
5459
# Build all packages
5560
build:
5661
runs-on: ubuntu-latest
62+
permissions:
63+
contents: read
5764
needs: changes
5865
steps:
5966
- uses: actions/checkout@v4
@@ -150,6 +157,7 @@ jobs:
150157
# Summary
151158
summary:
152159
runs-on: ubuntu-latest
160+
permissions: {}
153161
needs: [changes, build, publish-sdk, publish-cli]
154162
if: always()
155163
steps:

0 commit comments

Comments
 (0)