Skip to content

Commit 607005b

Browse files
authored
fix(ci): add statuses: write permission to restore SonarCloud PR decoration (#4574)
The explicit permissions block added in #4571 inadvertently dropped the repo default statuses: write permission. SonarCloud's GitHub App requires this to post quality gate commit statuses back to PRs. Before #4571, no permissions block meant the job inherited the repo default which included statuses: write - this is why decoration was working on Apr 14 but stopped after #4571 merged.
1 parent bfa4536 commit 607005b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/sonar.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
permissions:
1313
actions: read # Required to download artifacts
1414
pull-requests: write # Required for PR decoration comments
15+
statuses: write # Required for SonarCloud to post quality gate commit status
1516
steps:
1617
- name: 'Checkout project'
1718
uses: actions/checkout@v6

0 commit comments

Comments
 (0)