Skip to content

Commit 8a41752

Browse files
Report super-linter results in the job summary instead of a PR comment
super-linter posts a pull request summary comment by default, which calls the GitHub API with POST and requires pull-requests: write. The Lint job only grants statuses: write, so the call fails with HTTP 403 on every pull request. v8.7.0 logs this as an error and enables the step summary by default, which also triggers a summary-inconsistency warning. Disable the PR comment and publish the summary to the job step summary instead (SAVE_SUPER_LINTER_SUMMARY enables it), keeping the job least-privilege.
1 parent e76da44 commit 8a41752

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/Docs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ jobs:
4444
uses: super-linter/super-linter@9e863354e3ff62e0727d37183162c4a88873df41 # v8.6.0
4545
env:
4646
GITHUB_TOKEN: ${{ github.token }}
47+
# Report results in the job summary, not as a PR comment.
48+
# A PR comment needs pull-requests: write (not granted), so it 403s.
49+
# SAVE_SUPER_LINTER_SUMMARY must be true to build the summary.
50+
ENABLE_GITHUB_ACTIONS_STEP_SUMMARY: true
51+
ENABLE_GITHUB_PULL_REQUEST_SUMMARY_COMMENT: false
52+
SAVE_SUPER_LINTER_SUMMARY: true
4753
VALIDATE_BIOME_LINT: false
4854
VALIDATE_BIOME_FORMAT: false
4955
VALIDATE_JSCPD: false

0 commit comments

Comments
 (0)