Skip to content

Commit e27743f

Browse files
authored
ci: crates.io publish does not require write permissions
1 parent 989be43 commit e27743f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ on:
77
required: true
88
type: string
99

10-
permissions:
11-
contents: read
12-
1310
env:
1411
BIN_NAME: cotp
1512
PROJECT_NAME: cotp
@@ -19,6 +16,8 @@ jobs:
1916
dist:
2017
name: Dist
2118
runs-on: ${{ matrix.os }}
19+
permissions:
20+
contents: read
2221
strategy:
2322
fail-fast: false # don't fail other jobs if one fails
2423
matrix:
@@ -145,7 +144,7 @@ jobs:
145144
needs: [dist]
146145
runs-on: ubuntu-latest
147146
permissions:
148-
contents: write
147+
contents: read
149148
steps:
150149
- name: Checkout sources
151150
uses: actions/checkout@v4

0 commit comments

Comments
 (0)