Skip to content

Commit 9845de7

Browse files
Potential fix for code scanning alert no. 2: Workflow does not contain permissions (#90)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 835c8c3 commit 9845de7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/merge.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
- main
66
jobs:
77
test:
8+
permissions:
9+
contents: write
810
runs-on: ubuntu-latest
911
steps:
1012
- uses: actions/checkout@v4
@@ -26,6 +28,8 @@ jobs:
2628
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2729
sonarQube:
2830
name: SonarQube
31+
permissions:
32+
contents: read
2933
runs-on: ubuntu-latest
3034
steps:
3135
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)