Skip to content

Commit ac7dabb

Browse files
committed
added permissions
1 parent 6c0bf90 commit ac7dabb

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/analysis.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,13 @@ env:
3131
PREFERRED_LTS_VERSION: "24.3"
3232

3333
jobs:
34-
static:
34+
sonarcloud:
35+
name: SonarCloud
3536
runs-on: ubuntu-latest
37+
permissions:
38+
contents: read
39+
pull-requests: write
3640
timeout-minutes: 30
37-
name: Static code analysis
3841
steps:
3942
- name: Check out Git repository
4043
uses: actions/checkout@v4
@@ -101,12 +104,7 @@ jobs:
101104
ls -l ./client-v2/target/site/jacoco-aggregate/jacoco.xml
102105
continue-on-error: true
103106
- name: Generate and post coverage report
104-
# Add write permissions for pull-requests
105-
permissions:
106-
contents: read
107-
pull-requests: write
108107
env:
109-
# Use the default GITHUB_TOKEN with the right permissions
110108
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
111109
run: |
112110
pwd

0 commit comments

Comments
 (0)