Skip to content

Commit 989be43

Browse files
Potential fix for code scanning alert no. 5: Workflow does not contain permissions
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 844512a commit 989be43

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/deploy.yml

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

10+
permissions:
11+
contents: read
12+
1013
env:
1114
BIN_NAME: cotp
1215
PROJECT_NAME: cotp
@@ -86,6 +89,8 @@ jobs:
8689
name: "Publish binaries to release page"
8790
needs: [dist]
8891
runs-on: ubuntu-latest
92+
permissions:
93+
contents: write
8994
steps:
9095
- name: Checkout sources
9196
uses: actions/checkout@v4
@@ -139,6 +144,8 @@ jobs:
139144
name: "Publish crate on crates.io"
140145
needs: [dist]
141146
runs-on: ubuntu-latest
147+
permissions:
148+
contents: write
142149
steps:
143150
- name: Checkout sources
144151
uses: actions/checkout@v4

0 commit comments

Comments
 (0)