Skip to content

Commit 15007a1

Browse files
Potential fix for code scanning alert no. 3: Workflow does not contain permissions (#901)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 8a85efd commit 15007a1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
branches:
1111
- '*'
1212

13+
permissions:
14+
contents: read
15+
1316
env:
1417
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
1518
DOTNET_NOLOGO: true
@@ -101,6 +104,9 @@ jobs:
101104
deploy:
102105
runs-on: ubuntu-22.04
103106
needs: [create_nuget, build_and_test]
107+
permissions:
108+
contents: read
109+
packages: write
104110
steps:
105111
- uses: actions/download-artifact@v4
106112
with:

0 commit comments

Comments
 (0)